-
Notifications
You must be signed in to change notification settings - Fork 315
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
Return user on successful /POST verify #141
Comments
I'm hitting this error calling the SignOut() function from the Svelte quick-start documentation:
Getting error:
|
What are the options here, considering upstream might not fix this? |
I was able to mitigate this, in JS frontend, by signing in again with the refresh_token, like this: const veriyOTP = async () => {
let { session, error } = await supabase.auth.verifyOTP({
phone: `+1${phoneNumber}`,
token: code,
});
if (session?.refresh_token && !error) {
const {
user,
session: sesh,
error,
} = await supabase.auth.signIn({
refreshToken: session.refresh_token,
});
}
}; This returns the user, and fires |
Hey @Seanmclem, apologies for missing out on this and the delay! We've been working alot on other aspects of gotrue - in particular migrating our dashboard from auth0 to gotrue so we can start dogfooding gotrue. But since this seems like a high priority for most of yall, I'll discuss this with my team and look to push out a fix ASAP. Another workaround you can consider is to also call the |
Hey everyone, just an update, we have decided not to return a user on successful
Will be closing this issue if there are no further questions! |
🎉 This issue has been resolved in version 2.5.19 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Bug report
Current JSON response returned on successful POST /verify contains
user: null
Reason for current implementation: Netlify upstream originally returns
user:null
on the /verify endpointThe text was updated successfully, but these errors were encountered: