Supabase Swift authentication / refresh token errors
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!
10 Replies
The only place this error shows up on the web is a Reddit post which I assume is also you.
Yes that's me!
You probably need to try support and/or supabase/auth github issue. Also search there first, I did not but they usually show up in a web search.
where can I create a supabase/auth github issue/
appreciate it!
FWIW my session table has them all null also.
Is this a hosted Supabase instance?
Almost seems like your Auth server is out of version with the auth schema.
No it's supabase cloud, I'm not hosting... I tried restarting my project to get them up to sync (if that was the issue) but it didn't help
Do you have a support request in?
Yup put a support request in