Bitrix API

Jwt

FinalYes

Table of Contents

Constants

DEFAULT_TTL  = 12 * 3600

Methods

create()  : array<string|int, mixed>
Returns array with a pair of values: signed JWT token; token expiration timestamp
decode()  : mixed

Constants

DEFAULT_TTL

public mixed DEFAULT_TTL = 12 * 3600

Methods

create()

Returns array with a pair of values: signed JWT token; token expiration timestamp

public static create([array<string|int, mixed> $channels = [] ][, int $userId = 0 ][, array<string|int, mixed> $options = [] ]) : array<string|int, mixed>
Parameters
$channels : array<string|int, mixed> = []
$userId : int = 0
$options : array<string|int, mixed> = []
Return values
array<string|int, mixed>

decode()

public static decode(string $jwt, string $secret) : mixed
Parameters
$jwt : string
$secret : string

        
On this page

Search results