4
Verify password via API client
Source: supabase/supabase#8296 · opened by @danielpox
I'm in a situation where I need the user to verify their password in order to proceed. Note: This is not related to signup or email verification. But rather for the logged in user to verify their password in order to unlock certain actions. Currently I can't find any way to achieve this behavior via supabase-js. My initial thought was to use the auth.signIn(), but this refreshes the access token and invalidates the application state. What I'm looking for is a simple API method to verify the password for the currently signed in user (unless this introduces some security concerns). Something like this: supabase.auth.api.verifyPassword('a-password'). (Maybe not the .api scope, but just supabase.auth?) In Firebase there's something similar called reauthenticateWithCredential(), and although this also updates the token, it didn't work to just swap Firebase with Supabase for my project. My application is using the access token as an API caching param…
No pledges yet. Be the first to back this.
Comments
Similar requests
Handling the Password Reset for a user by Supabase itself.
2 votes · 0 comments
Handling the Password Reset for a user by Supabase itself.
7 votes · 0 comments
there is not information about email_change_token_new and email_change_token_current
2 votes · 0 comments
Password reset should not act as OTP
3 votes · 0 comments
Changing JWTs to RS256 to verify JWT inside getSession() anywhere
4 votes · 0 comments
No comments yet.