clerk / javascript

Official Javascript repository for Clerk authentication
https://clerk.com
MIT License
1.1k stars 243 forks source link

Can't enable reset_password_email_code strategy for Forgot Password flow #1453

Closed BrettCrowley77 closed 1 year ago

BrettCrowley77 commented 1 year ago

I’m trying to set up a custom Forgot Password flow as described here: https://clerk.com/docs/authentication/forgot-password

However, I get the error: The verification strategy is not valid for this account.

The reset_password_email_code strategy is available on SignInCreateParams (I'm using Clerk Expo 0.18.7), I can't find any guidance in the docs or project settings on enabling the reset_password_email_code strategy. Moreover, the reset_password_email_code strategy is not currently document as an option on the SignInCreateParams 'strategy' parameter: https://clerk.com/docs/reference/clerkjs/signin#create-params

panteliselef commented 1 year ago

Hey @BrettCrowley77 thanks for reaching out. The sample code for "custom Forgot Password flow" is up-to-date and should work fine.

You should be able to use the reset_password_email_code strategy just by allowing users to authenticate with a password. So if that setting is turned on you don't have to to any additional changes to your configuration in the dashboard.

Sadly I couldn't replicate this issue. I've contacted our Backend API engineering team to assist further.

Sharing a video recoding or any relevant information about the requests performed would assist us on finding the root cause of this.

BrettCrowley77 commented 1 year ago

Hi @panteliselef, this was an issue on my end - apologies for the false alarm.

panteliselef commented 1 year ago

I'm glad it got resolved

clerk-cookie commented 2 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.