public static findIdentityByAccessToken ( mixed $token, mixed $type = null ) : yii\web\IdentityInterface |
$token |
mixed |
the token to be looked for |
$type |
mixed |
the type of the token. The value of this parameter depends on the implementation.
For example, [[\yii\filters\auth\HttpBearerAuth]] will set this parameter to be `yii\filters\auth\HttpBearerAuth`. |
return |
yii\web\IdentityInterface |
the identity object that matches the given token.
Null should be returned if such an identity cannot be found
or the identity is not in an active state (disabled, deleted, etc.) |