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.