This gives me a CognitoUserSession. I can also build a CognitoUser off of that.
When I call cognitoUser.refreshSession.. it gives me an updated expiration time, but all the tokens are the same. On the web side, the accessToken is changing. Is there something I can do in order to mitigate this?
Hey there,
I'm trying to get a new access token. I used this:
Future signUserInWithAuthCode(String authCode) async { String url = 'https://$_domain.auth.$_region.amazoncognito.com/oauth2/token?' 'grant_type=authorization_code&client_id=$_appClientId' '&redirect_uri=$_redirectURI&code=$authCode';
This gives me a CognitoUserSession. I can also build a CognitoUser off of that.
When I call cognitoUser.refreshSession.. it gives me an updated expiration time, but all the tokens are the same. On the web side, the accessToken is changing. Is there something I can do in order to mitigate this?
Please advise as to how YOU would do this please?
Thanks!