amazon-archives / amazon-cognito-auth-js

The Amazon Cognito Auth SDK for JavaScript simplifies adding sign-up, sign-in with user profile functionality to web apps.
Apache License 2.0
422 stars 231 forks source link

Getting a refresh token on Angular v5 #110

Open miojoffey opened 6 years ago

miojoffey commented 6 years ago

Hi, im not too sure if this is relevant to this, but this is my case.

I have an app that authenticates using cognito /login endpoint. https://docs.aws.amazon.com/cognito/latest/developerguide/login-endpoint.html

so it returns to me a response that only includes id_token, access_token, token_type, expires_in, but does not include a refresh token. Would it be possible for me to use this sdk to issue a refresh with the ones i got from the /login endpoint?

Any help is much appreciated. Thank you.

mlazzarini commented 6 years ago

You both need to:

(at least this worked for me)