Interface Yiisoft\Auth\Jwt\TokenFactoryInterface
| Implemented by | Yiisoft\Auth\Jwt\TokenFactory |
|---|
Token factory creates a token.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| create() | Create a token with the payload specified. | Yiisoft\Auth\Jwt\TokenFactoryInterface |
Method Details
Create a token with the payload specified.
| public abstract string create ( array $payload, string $format, integer|null $signatureIndex = null ) | ||
| $payload | array |
Payload to make a part of the token. |
| $format | string |
Serialization format. |
| $signatureIndex | integer|null |
The signature index for serialization. |
| return | string |
Token. |
|---|---|---|
public function create(array $payload, string $format, ?int $signatureIndex = null): string;
Signup or Login in order to comment.