Reputation: 832
I was using Firebase SMS auth, generate a JWT, and use the Firebase auth token as the user token in SupaBase:
Supabase.instance.client.auth.setAuth(theCustomJWTtoken);
In the 1.x version of the supabase_flutter package setAuth has been removed, and the documentation is not helping me figure out how I can continue to use custom JWTs in Flutter.
Any ideas (preferably with code)?
Upvotes: 0
Views: 634
Reputation: 832
final supabase = SupabaseClient(supabaseUrl, supabaseKey, headers: {
'Authorization': 'Bearer $access_token',
});
This worked. Was posted on GitHub here:
Upvotes: 2