File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -133,10 +133,10 @@ public function renew(): null|\Illuminate\Routing\Redirector|RedirectResponse
133133
134134 if (Auth::guard ($ guardName )->check ()) {
135135 $ user = Auth::guard ($ guardName )->user ();
136- $ oauthData = OAuth::whereUserId ($ user ?->getAuthIdentifier())->firstOrFail ();
136+ $ oauthData = OAuth::whereUserId ($ user ?->getAuthIdentifier())->first ();
137137
138138 // @phpstan-ignore-next-line
139- if ($ oauthData ->oauth_token !== null && $ oauthData ->oauth_token_expires_at < now ()->timestamp ) {
139+ if ($ oauthData !== null && $ oauthData ->oauth_token !== null && $ oauthData ->oauth_token_expires_at < now ()->timestamp ) {
140140 if (config ('oauth.offline_access ' ) === false ) {
141141 return $ this ->unauthorizeAndLogout ($ oauthData , $ guardName );
142142 }
You can’t perform that action at this time.
0 commit comments