PASSWORD_CLIENT_ID={clientId}
PASSWORD_CLIENT_SECRET={secret}
OAUTH_TOKEN_URL=http://example.org/oauth/token
// Add this in your `routes/web.php`, where `AppController` link to your SPA controller.
Route::get('password/reset/{token}', 'AppController')->name('password.reset');
The package will automatically register itself.
<?php
return [
/*
* Credentials for the user based provider
*/
'credentials' => [
'password_client_id' => env('PASSWORD_CLIENT_ID', ''),
'password_client_secret' => env('PASSWORD_CLIENT_SECRET', ''),
'provider' => Olymbytes\Z00s\Auth\Credentials\EnvFileProvider::class,
],
/*
* The url to get access token, refresh token, etc. from.
*/
'oauth_token_url' => env('OAUTH_TOKEN_URL', ''),
/*
* The prefix that should be used for the z00s routes.
*/
'route_prefix' => 'api',
/*
* The field to use as username.
*/
'username_field' => 'email',
];
To do.