© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4mo ago•
10 replies
Angélique<FreeDev>

Update password (not reset password page)

Hi everyone đź‘‹
I'm working on a password update feature using Supabase Auth in my Next.js app.

The password update itself works perfectly — Supabase updates the password and I can log in again with the new one.

However, the current session becomes invalid right after the password change, but Supabase doesn't automatically sign out the user. So on the frontend, the user still appears logged in, but any API calls fail with “Invalid JWT”.

I’ve tried calling supabase.auth.signOut() or refreshing the session after the update, but it doesn’t seem to take effect — the button stays on “Updating...” and the session event log still shows “Session active”.

How can I properly handle this situation and force a clean logout (or session refresh) right after a successful password update?

Thanks a lot for your help 🙏
code.png
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
Not getting password reset links
SupabaseSSupabase / help-and-questions
6mo ago
Not receiving "reset password" email
SupabaseSSupabase / help-and-questions
3y ago