Interface Yiisoft\Auth\Jwt\TokenRepositoryInterface
| Implemented by | Yiisoft\Auth\Jwt\TokenRepository |
|---|
Token repository is getting a list of claims for a token.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| getClaims() | Get claims from a token. | Yiisoft\Auth\Jwt\TokenRepositoryInterface |
Method Details
Get claims from a token.
Claims are statements about an entity (typically, the user) and additional data.
| public abstract array|null getClaims ( string $token, string|null &$format = null ) | ||
| $token | string |
Token to get claims from. |
| $format | string|null | |
public function getClaims(string $token, ?string &$format = null): ?array;
Signup or Login in order to comment.