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