Thanks for help I am working on a project with laravel in backend and react js on the front end
I cannot understand how to issue refresh token along with personal access token
Createtoken('token_name')->accesstoken(); Only issues an access token
Thanks for help I am working on a project with laravel in backend and react js on the front end
I cannot understand how to issue refresh token along with personal access token
Createtoken('token_name')->accesstoken(); Only issues an access token
$user->createToken('Token Name')->accessToken;
Creates a Personal Access Tokens that can't be refreshed.
You need to issue an OAuth 2.0 authorization code flow for this. See Laravel`s Documentation about how to issue an access token
passport:client
Artisan commandThe /oauth/token
endpoint will return a JSON response containing access_token
and a refresh_token
.