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
garyaustin
garyaustin2d ago
The only place this error shows up on the web is a Reddit post which I assume is also you.
kevinyang
kevinyangOP2d ago
Yes that's me!
garyaustin
garyaustin2d ago
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.
kevinyang
kevinyangOP2d ago
where can I create a supabase/auth github issue/
kevinyang
kevinyangOP2d ago
appreciate it!
garyaustin
garyaustin2d ago
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.
kevinyang
kevinyangOP2d ago
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
garyaustin
garyaustin2d ago
Do you have a support request in?
kevinyang
kevinyangOP2d ago
Yup put a support request in

Did you find this page helpful?