Reset password trouble
Am using supabase through Netlify and my frontend sends an api call to backend to reset password. The email and link is OK, it arrives and authorizes the session and redirects to the new pw form. I then grab the access token like this:
const hashParams = new URLSearchParams(window.location.hash.substring(1))
const accessToken = hashParams.get('access_token')
and now the problem begins.. i need to initiate a client but i don't want to expose my link and anon key in the front-end. is there no way i can pass this access token to the backend and update the new password there?
Please help! Ty!
const hashParams = new URLSearchParams(window.location.hash.substring(1))
const accessToken = hashParams.get('access_token')
and now the problem begins.. i need to initiate a client but i don't want to expose my link and anon key in the front-end. is there no way i can pass this access token to the backend and update the new password there?
Please help! Ty!