Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(auth-js): session provider #775

Merged
merged 2 commits into from
Oct 20, 2024
Merged

refactor(auth-js): session provider #775

merged 2 commits into from
Oct 20, 2024

Conversation

divyam234
Copy link
Contributor

@divyam234 divyam234 commented Oct 11, 2024

@yusukebe This pr improves Session Provider implementation which was initially taken from next-auth. Composing useEffect logic into separate hooks to make code more readable and change in login function to support Popup Window login which will be added in example repo later.

Copy link

changeset-bot bot commented Oct 11, 2024

🦋 Changeset detected

Latest commit: 457b9ab

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@hono/auth-js Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@divyam234 divyam234 changed the title refactor: session provider refactor(auth-js): session provider Oct 11, 2024
Copy link
Member

@yusukebe yusukebe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yusukebe
Copy link
Member

@divyam234

Thanks! I've fixed the format myself, and it looks good to me. I'll merge this and ship it.

@yusukebe yusukebe merged commit c19b51b into honojs:main Oct 20, 2024
1 check passed
@github-actions github-actions bot mentioned this pull request Oct 20, 2024
@divyam234
Copy link
Contributor Author

divyam234 commented Oct 21, 2024

Popup Window login is added in example repo this will also allow to use auth.js for cross domain setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants