0 follower

Interface Yiisoft\Auth\Jwt\TokenFactoryInterface

Implemented byYiisoft\Auth\Jwt\TokenFactory

Token factory creates a token.

Public Methods

Hide inherited methods

Method Description Defined By
create() Create a token with the payload specified. Yiisoft\Auth\Jwt\TokenFactoryInterface

Method Details

Hide inherited methods

create() public abstract method

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;