File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 38
38
"iss " => ""
39
39
],
40
40
41
+ /*
42
+ |--------------------------------------------------------------------------
43
+ | Kauth cookie auth
44
+ |--------------------------------------------------------------------------
45
+ |
46
+ | You can use for socialite system
47
+ |
48
+ |
49
+ */
50
+
51
+ "cookie_auth " => false ,
52
+
41
53
/*
42
54
|--------------------------------------------------------------------------
43
55
| Kauth guard setup
Original file line number Diff line number Diff line change @@ -40,6 +40,10 @@ public function create($tokenID,$userType){
40
40
public function tokon (){
41
41
$ token_header = Config::get ('kauth.token_header_name ' ) ? Config::get ('kauth.token_header_name ' ) : 'tokon ' ;
42
42
$ tokon = \Request::header ($ token_header );
43
+
44
+ if (empty ($ tokon )){
45
+ return $ _COOKIE [$ token_header ];
46
+ }
43
47
return $ tokon ;
44
48
}
45
49
You can’t perform that action at this time.
0 commit comments