#Amplify flutter, api not getting token from auth module using cognito.

6 messages · Page 1 of 1 (latest)

wooden mantle
#

Cognito login works. Can fetch the token with auth.fetchauthsession. But then when using the amplify api package on an api with cognito authorizer i only get 401 unauthorized.

Api with cognito works in a web app seamlessly, so trying to reuse them in a flutter app.

#

Both api and cognito are added to the config file

#

Restapi with api gateway

#

Amplify flutter, api not getting token from auth module using cognito.

wooden mantle
#

Managed to get the token and used it on flutters own http package to call the api from the app successfully. So the issue is with the amplify auth/api modules.

raven rapids
#

Sorry you ran into this issue @wooden mantle, we will investigate this