Missing 'getClaims' method in Supabase Flutter SDK
Hi! I'm currently trying to implement async auth in a mock application, but i noticed that the issue has been blocked and has been pending for 5 months (https://github.com/supabase/supabase-flutter/issues/1117).
This means that I have to use .getUser() until the SDK includes it - does this pose an issue with async JWT Tokens, or would .getUser work until I can migrate over to using .getClaims?
GitHub
supabase/supabase-flutter
Flutter integration for Supabase. This package makes it simple for developers to build secure and scalable products. - supabase/supabase-flutter
3 Replies
getUser still works
even if i switch my api keys and jwt keys over to the new async implementations?
Yes.
GetUser stays around. It is needed if you want to check for more detail user info in auth.users, or check status of user before the JWT expires and gets updated. For instance getClaims will return claims for a deleted user until the JWT expires. getUser won't.