cognito-vue-bootstrap icon indicating copy to clipboard operation
cognito-vue-bootstrap copied to clipboard

[Question] Using with API Gateway

Open thezachcannon opened this issue 7 years ago • 3 comments

I have this pretty much implemented in a project I'm working on, I noticed my tokens expire after an hour, is there any way to get the refreshToken working in this example...Just looking for some help, and seems like you're the only one to implement this in vue.

Thanks.

thezachcannon avatar Jan 19 '18 18:01 thezachcannon

Most of the sessions I have on the app I use this for are pretty short so this hasn't bothered me. I do need to look into this though.

wolfeidau avatar Feb 13 '18 22:02 wolfeidau

Hello, great example, I have the same problem as @thezachcannon, the token_id expire after an hour and I can not do much more. Thanks

dianamariand92 avatar May 03 '18 14:05 dianamariand92

@thezachcannon - Refresh tokens shouldn't be available to a javascript app, as the app is considered public with no capability to store client secrets (see RFC6749). I wouldn't recommend it for production implementations. Having said that, Cognito and Amplify will definitely allow you to do it when configuring your User Pool App Client. Found this piece on managing session refresh with Amplify

ajohanssonwalder avatar Jul 09 '18 23:07 ajohanssonwalder