Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get a refresh token. (not refreshing an access token) #1282

Closed
mesqueeb opened this issue Aug 13, 2017 · 1 comment
Closed

Get a refresh token. (not refreshing an access token) #1282

mesqueeb opened this issue Aug 13, 2017 · 1 comment

Comments

@mesqueeb
Copy link

mesqueeb commented Aug 13, 2017

Hello community.
I'm really confused with the difference between 'refresh tokens' and "refreshing a token".

I think that refreshing a token just gives a new 'access token' which is short lived right?
But I wanna set my 'refresh tokens' to live for a year, and save them onto the local storage.

It's confusing in this library when it gives you an 'access token' and when it gives a 'refresh token'.
How do I generate a "refresh token" manually?

If I have a 100% front-end Single Page Application. And I want my users to stay logged in forever on the same computer and browser, it's this refresh token that I should save in a cookie or local storage right? (leave the cookie vs local storage aside for now)

@mesqueeb mesqueeb changed the title Get refresh token manually. Get a refresh token. Aug 13, 2017
@mesqueeb mesqueeb changed the title Get a refresh token. Get a refresh token. (not refreshing an access token) Aug 13, 2017
@tremby
Copy link

tremby commented Aug 22, 2017

I asked the same in #1105.

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

No branches or pull requests

2 participants