supabase-flutter
supabase-flutter copied to clipboard
Amazon Cognito Auth Integration - accessToken parameter
Improve documentation
Link
https://supabase.com/docs/guides/auth/third-party/aws-cognito?queryGroups=cognito-create-client&cognito-create-client=dart
Describe the problem
In the documentation to add Amazon Cognito as a third party auth provider, it seems that the code snippets to "Setup the Supabase client library" is not correct. "accessToken" is not a parameter for "Supabase.initialize" method.
Where do we have to define the accessToken parameter? In LocalStorage?
Describe the improvement
It would be great to fix the code snippet and have more explanation on how to well integrate Amazon Cognito with Supabase.
Additional context
Flutter version: 3.22.2
Hi, I've moved this issue over from the supabase repo to the supabase-flutter issue as flutter/dart related.
@baptiste-veyrard Which supabase_flutter version are you using? The parameter should be there: https://github.com/supabase/supabase-flutter/blob/79edb81c478ade80baab32c70740e988a692c85d/packages/supabase_flutter/lib/src/supabase.dart#L84