tymondesigns / jwt-auth

🔐 JSON Web Token Authentication for Laravel & Lumen
https://jwt-auth.com
MIT License
11.27k stars 1.55k forks source link

How to create a refresh_token. #1600

Open alex-zukitek opened 6 years ago

alex-zukitek commented 6 years ago

Subject of the issue

I get an access token, but i need more a refresh_token .

My solution: $token = JWTAuth::fromUser($auth); $refresh_token = JWTAuth::customClaims(['exp' => Carbon::now()->addYear()->timestamp])->fromUser($auth);

Your environment

Q A
Bug? no
New Feature? yes
Framework Laravel
Framework version 5.6.x
Package version 1.0.0-rc.2
PHP version 7.1.17
ColinRyan commented 6 years ago

I'm wondering about this to!

docmattman commented 6 years ago

Any progress on getting this working? Wondering how to get it working as well.

ghost commented 5 years ago

Same issue to me.

Where can I get the refresh_token? or How?

ghost commented 5 years ago

I think I've found an answer on the following issue. Just got it. :sweat_smile:

1105

stale[bot] commented 3 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.