flutter_cognito_plugin icon indicating copy to clipboard operation
flutter_cognito_plugin copied to clipboard

Get token not working in android

Open maheshlalu opened this issue 5 years ago • 2 comments

maheshlalu avatar Jun 06 '20 06:06 maheshlalu

any update on this? getTokens not working only on android. On ios its okay.

mario-neb avatar Nov 27 '20 21:11 mario-neb

What exactly is your problem?

In my case, I was printing the access token to the console and trying to verify it but copying it and pasting into a JWT verifier. I kept getting a token with an invalid signature in Android but a valid token in iOS.

The issue for me was that the Android logger was truncating the output of the print statement and I was copying only the first part of the token. I was missing the last 23 characters of the token.

luttmerk avatar Jan 12 '21 14:01 luttmerk