File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -18,17 +18,17 @@ public function handle($request, Closure $next)
1818 $ this ->checkForToken ($ request );
1919 $ this ->auth ->parseToken ()->authenticate ();
2020 } catch (TokenExpiredException $ exception ) {
21- $ token = $ this ->auth ->refresh ();
22- Auth::guard (Api::GUARD )->onceUsingId (
23- $ this ->auth
24- ->manager ()
25- ->getPayloadFactory ()
26- ->buildClaimsCollection ()
27- ->toPlainArray ()['sub ' ]
28- );
29-
30- return $ this ->setAuthenticationHeader ($ next ($ request ), $ token );
31- } catch (Exception $ exception ) {
21+ // $token = $this->auth->refresh();
22+ // Auth::guard(Api::GUARD)->onceUsingId(
23+ // $this->auth
24+ // ->manager()
25+ // ->getPayloadFactory()
26+ // ->buildClaimsCollection()
27+ // ->toPlainArray()['sub']
28+ // );
29+ //
30+ // return $this->setAuthenticationHeader($next($request), $token);
31+ // } catch (Exception $exception) {
3232 return $ next ($ request );
3333 }
3434
You can’t perform that action at this time.
0 commit comments