-
Notifications
You must be signed in to change notification settings - Fork 34
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
Pass in session data in SignInButton #135
Comments
I'm facing the same issue and it's turning nuts to store the session manually.. any hint on this? |
Did you ever solve this? |
Nope, I changed to use neynar auth for the moment |
having same issue |
btw i believe a quick workaround would be to check session yourselves and render a ProfileButton as they do in the SignInButton |
The solution may be to modify the library to do this:
Workaround I used a similar workaround to what @alexkubica mentions above. To get the First, I turned on
Second, I wrapped The example has a
Third, in my app (say for the Home page), I simplified by just using the standard
|
In the
with-next-auth
example, I noticed if you sign in then hit refresh, the SignInButton believes you're not signed in and says "Sign In" rather than being a ProfileButton. This is because SignInButton is not aware of the data in the current session. It would be nice to be able to pass session data into SignInButton so that it can know you're already authenticated and display the right button.auth-monorepo/examples/with-next-auth/pages/index.tsx
Lines 59 to 64 in e5fa7ef
The text was updated successfully, but these errors were encountered: