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

QUESTION: How to get a refresh token along with an access token #2175

Open
Renison-Gohel opened this issue Apr 2, 2022 · 2 comments
Open

Comments

@Renison-Gohel
Copy link

QUESTION: How to get a refresh token along with an access token

| Bug? | yes
| New Feature? | yes
| Framework | Laravel
| Framework version | 8.0.0
| Package version | 1.8.2
| PHP version | 7.0.0

**How to implement refresh token like this:

  1. when login return access_token and refresh_token
  2. when access_token expires, return a message that informs the token was expired.
  3. after expired, request a new token by sending refresh_token
  4. then return new access_token with new refresh_token too.**

I'm using laravel 8 and from your documentation, the AuthController only return access_token
how to generate refresh_token with TTL_REFRESH ?

@GunarajKhatri
Copy link

i request you to go through this my blog once ,few months back i have implemented something like above you mention.
here you go

@eznix86
Copy link

eznix86 commented Mar 5, 2024

#2241

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

3 participants