classe Tokenize (Voir la source)

Méthodes

static bool
makeCsrfToken(int|null $time = null)

Csrf token creator

static string
make()

GGenerate an encrypted key

static array|null
csrf(int $time = null)

Get a csrf token generate

static bool
csrfExpired(int $time = null)

Check if the token expires

static bool
verify(string $token, bool $strict = false)

Check if csrf token is valid

static void
clear()

Destroy the token

Détails

static bool makeCsrfToken(int|null $time = null)

Csrf token creator

Paramètres

int|null $time

Valeur de retour

bool

static string make()

GGenerate an encrypted key

Valeur de retour

string

static array|null csrf(int $time = null)

Get a csrf token generate

Paramètres

int $time

Valeur de retour

array|null

static bool csrfExpired(int $time = null)

Check if the token expires

Paramètres

int $time

Valeur de retour

bool

static bool verify(string $token, bool $strict = false)

Check if csrf token is valid

Paramètres

string $token
bool $strict

Valeur de retour

bool

static void clear()

Destroy the token

Valeur de retour

void