G
G
GrimJack2017-07-13 14:54:42
Laravel
GrimJack, 2017-07-13 14:54:42

How to refresh token in laravel passport?

I made authorization for the application through passport, everything works great.
Authorize (conditionally) like this:

'form_params' => [
                    'grant_type' => 'password',
                    'client_id' => $table->id,
                    'client_secret' => $table->secret,
                    'username' => $request['user_email'],
                    'password' => $request['user_password'],
                    'scope' => '',
                ],

$table->id and secret are the values ​​from the row in the oauth_clients table where password client = 1
How to renew the token correctly?
I could not find specific information in the documentation and in Google.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RidgeA, 2017-07-13
@RidgeA

isn't it?
https://laravel.com/docs/5.4/passport#refreshing-tokens

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question