|
|
|
|
@ -26,6 +26,9 @@ class SanctumJWT
|
|
|
|
|
return $this->fail(StarterResponseCode::JWT_AUTH_FAIL);
|
|
|
|
|
}
|
|
|
|
|
$tokenable = $token->tokenable;
|
|
|
|
|
if(!isset($tokenable->id)){
|
|
|
|
|
return $this->fail(StarterResponseCode::JWT_AUTH_FAIL);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$guards = config("auth.guards");
|
|
|
|
|
foreach ($guards as $k => $v) {
|
|
|
|
|
|