I am using tymon/jwt-auth library in Laravel to generate token. At the moment I am able to create the token:
$token = JWTAuth::attempt($credentials)
The point is I need to generate also a refresh token to return to the user, how can I do it? The final results should be like this:
{
"jwt":"eyJ0eXAiOiJKV1QiLCJhbGciOi . . .",
"refresh_token": "b5ed616d32 . . ."
}
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2qMgorp
via IFTTT
Aucun commentaire:
Enregistrer un commentaire