© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3mo ago•
11 replies
kevinyang

Supabase Swift authentication / refresh token errors

auth
Hi all, I'm building an iOS app in Swift using the supabase sdk but I'm encountering an issue with auth/refresh tokens. I'm testing the app but I notice that I'm unable to stay logged in. I review the auth/API logs and see this error pop up multiple times every minute.

500: missing destination name refresh_token_hmac_key in *models.Session

For context, my Supabase project has JWT keys enabled and the auth.sessions table does have the refresh_token_hmac_key column. refresh_token_hmac_key is always NULL however, it's never filled in when I check it (for any sessions).

I've been stuck on this for a bit so would really appreciate any guidance here!
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

sb-access-token,sb-refresh-token VS supabase-auth-token?
SupabaseSSupabase / help-and-questions
4y ago
How to refresh access token using refresh token in supabase c# api?
SupabaseSSupabase / help-and-questions
4mo ago
Save access_token and refresh_token after successful OAuth authentication
SupabaseSSupabase / help-and-questions
4y ago
504/503 Errors with Login/Token Refresh
SupabaseSSupabase / help-and-questions
2mo ago