supabase
supabase copied to clipboard
Problem with PKCE and `generateLink()`
Version
@nuxtjs/supabase: v1.1.2 nuxt: v.3.6.5
Problem description
Hi, I attempted to update my authentication flow to include PKCE, but I've encountered an issue during the registration and email confirmation process.
Some details about my implementation:
- I disabled the
redirectoption, because I had implemented my own middleware to manage the necessary redirects. - For user registration, I utilize a local API endpoint to generate a link and send a confirmation email via Postmark, as demonstrated in the code snippet below:
await client.auth.admin.generateLink({ type: 'signup', email, password, redirect_to })
Here's the problem: When I click the confirmation link with PKCE enabled, the user is redirected to my verification page, but they are not automatically logged in. I can see all the tokens and parameters in the URL, but the user session is not established. I also attempted to redirect the user to the callback page, but the result remains the same.
Is there something I might be overlooking or is there a configuration issue causing this behavior?
Same here, any suggestions?
I'm facing the same issue.