File tree 2 files changed +16
-1
lines changed
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
return [
4
4
5
+ /*
6
+ |--------------------------------------------------------------------------
7
+ | Passport Guard
8
+ |--------------------------------------------------------------------------
9
+ |
10
+ | Here you may specify which authentication guard Passport will use when
11
+ | authenticating users. This value should correspond with one of your
12
+ | guards that is already present in your "auth" configuration file.
13
+ |
14
+ */
15
+
16
+ 'guard ' => 'web ' ,
17
+
5
18
/*
6
19
|--------------------------------------------------------------------------
7
20
| Encryption Keys
Original file line number Diff line number Diff line change 14
14
'middleware ' => 'web ' ,
15
15
]);
16
16
17
- Route::middleware (['web ' , 'auth ' ])->group (function () {
17
+ $ guard = config ('passport.guard ' , null );
18
+
19
+ Route::middleware (['web ' , $ guard ? 'auth: ' .$ guard : 'auth ' ])->group (function () {
18
20
Route::post ('/token/refresh ' , [
19
21
'uses ' => 'TransientTokenController@refresh ' ,
20
22
'as ' => 'token.refresh ' ,
You can’t perform that action at this time.
0 commit comments