supabase-community / gotrue-swift

A Swift client library for GoTrue.
MIT License
35 stars 31 forks source link

autoRefreshToken not working #19

Closed jjlange closed 2 years ago

jjlange commented 2 years ago

I'm currently facing the problem that users get logged out after the JWT Token expires. I assumed the Token gets automatically refreshed when the autoRefreshToken value is set to true but it doesn't.

Error: PostgrestError(details: nil, hint: nil, code: nil, message: "JWT expired")

Additionally, some of the examples (sign in/sign out) in the README.md are not working with the newest version and other docs are missing (authEventChange for example).

daneden commented 2 years ago

+1, I’ve noticed that autoRefreshToken seems to have no effect (using SupabaseClient).

grdsdev commented 2 years ago

Closing this in favor of https://github.com/supabase-community/supabase-swift/issues/30