wolfeidau / cognito-vue-bootstrap

This application illustrates how to use the Amazon Amplify with vue.js.
https://github.com/wolfeidau/cognito-vue-bootstrap
Other
181 stars 36 forks source link

[Question] Using with API Gateway #12

Open thezachcannon opened 6 years ago

thezachcannon commented 6 years ago

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.

wolfeidau commented 6 years ago

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.

dianamariand92 commented 6 years ago

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

ajohanssonwalder commented 6 years ago

@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