© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4mo ago•
2 replies
tom

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!
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Password reset
SupabaseSSupabase / help-and-questions
6mo ago
Password reset
SupabaseSSupabase / help-and-questions
13mo ago
Setup password reset
SupabaseSSupabase / help-and-questions
3w ago
Handling Password Reset
SupabaseSSupabase / help-and-questions
13mo ago