SupabaseS
Supabase2mo ago
keru

How does the reset password flow work on kotlin auth?

I can't seem to figure out how to implement the reset password flow on kotlin

I'm following the docs with the two step implementation:

  1. supabase.auth.resetPasswordForEmail(email, redirecturl)
  2. when it deeplinks back into my app handle it with SupabaseClient.client.handleDeeplinks(intent)
but this instantly authenticates the user and my app is actively looking at the auth state and moving the user to the main screen when they are authenticated but I want to move the user to the reset password screen and not be already in the main app no? I figured the user should get in a recovery state where they would change their password and I'd run the supabase.auth.updateUser() function and then let the user log in with the new password. Is there any way to check if the user is in a recovery state on kotlin?
Was this page helpful?