Skip to content
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.

[Question] Using with API Gateway #12

Open
thezachcannon opened this issue Jan 19, 2018 · 3 comments
Open

[Question] Using with API Gateway #12

thezachcannon opened this issue Jan 19, 2018 · 3 comments

Comments

@thezachcannon
Copy link

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
Copy link
Owner

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
Copy link

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
Copy link

ajohanssonwalder commented Jul 9, 2018

@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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants