2021年1月17日星期日

How to use cognito refresh token to get new accessToken in flutter

I am currently using the Dart SDK amazon-cognito-identity-dart-2 for authentication in flutter.

When a refresh token is generated for a session, how can I use this refresh token to get new jwt access token before expiration?. accessToken expires when app is running itself. Only in login and signup ,i can fetch refresh token, but i want to get new accesstoken in main function when old one expires. Can anyone answer to this.

https://stackoverflow.com/questions/65713844/how-to-use-cognito-refresh-token-to-get-new-accesstoken-in-flutter January 14, 2021 at 01:26PM

没有评论:

发表评论