Irazasyed\JwtAuthGuard\JwtAuthGuard::onceUsingId PHP Method

onceUsingId() public method

Log the given user ID into the application without sessions or cookies.
public onceUsingId ( mixed $id ) : boolean
$id mixed
return boolean
    public function onceUsingId($id)
    {
        if (!is_null($user = $this->provider->retrieveById($id))) {
            $this->setUser($user);
            return true;
        }
        return false;
    }