wolfeidau/cognito-vue-bootstrap

[Question] Using with API Gateway

thezachcannon opened this issue · 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.

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.

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

@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