FeatureFuel
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.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests