supabase-flutter icon indicating copy to clipboard operation
supabase-flutter copied to clipboard

Amazon Cognito Auth Integration - accessToken parameter

Open baptiste-veyrard opened this issue 1 year ago • 2 comments

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

Capture d’écran 2024-10-05 à 12 48 20

Flutter version: 3.22.2

baptiste-veyrard avatar Oct 05 '24 10:10 baptiste-veyrard

Hi, I've moved this issue over from the supabase repo to the supabase-flutter issue as flutter/dart related.

Hallidayo avatar Mar 22 '25 17:03 Hallidayo

@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

Vinzent03 avatar Mar 22 '25 19:03 Vinzent03