After calling this method, it will automatically update all the access_token, id_token and refresh_token with the new value.
This means, when you call cotter.tokenHandler.getAccessToken() next, you'll get an access token that has all the custom attributes.
New Loginswill not have the custom claims because we don't attach the custom claims to the user itself.
OAuth Token Specification
This function automatically refreshes the access token if it's expired. The returned access token would be in the form of a object which contains both the string and the decoded token.
If you used this , and you received a new refresh_token , you can update the refresh token stored in the user's browser by calling this method:
Access tokens and id tokens that are generated using this refresh token and will always have the custom claims.