Supabase Auth, get a code instead of session
Hello everybody,
I'm using Supbase DB et Auth with Nextjs (front) and Nestjs (back)
My case is I symply log with google
And and get the response in a callback
It's working fine ... but I found this function
Which is better because I would like to get the code in the fronted and get the JWT in the backend, and share only few fields encrypted (more safe)
So the callback url contains the entire session
Is there a solution to change it to a code instead ?
I'm using Supbase DB et Auth with Nextjs (front) and Nestjs (back)
My case is I symply log with google
And and get the response in a callback
It's working fine ... but I found this function
supabase.auth.exchangeCodeForSession(String(code))Which is better because I would like to get the code in the fronted and get the JWT in the backend, and share only few fields encrypted (more safe)
So the callback url contains the entire session
Is there a solution to change it to a code instead ?