Gotrue does not currently support PKCE flow for `ResetPasswordForEmail`
acupofjose opened this issue · 0 comments
acupofjose commented
Discussed in #111
Originally posted by makgahlela September 30, 2023
how to get the app to detect type=recovery in the fragment of the url below and display a password reset form to the user using supabase c# in "WPF" or .net MAUI ( after the user have clicked the 'reset password' in the email)
https://www.domainName.com/#access_token=........&expires_at=1696000393&expires_in=9600&refresh_token=S2158752dhjjjj77niUA&token_type=bearer&type=recovery
Lines in the Gotrue-js client:
if (this.flowType === 'pkce') {
const codeVerifier = generatePKCEVerifier()
await setItemAsync(this.storage, `${this.storageKey}-code-verifier`, codeVerifier)
codeChallenge = await generatePKCEChallenge(codeVerifier)
codeChallengeMethod = codeVerifier === codeChallenge ? 'plain' : 's256'
}