Skip to content

Latest commit

 

History

History
233 lines (82 loc) · 1.91 KB

Csrf.md

File metadata and controls

233 lines (82 loc) · 1.91 KB

Csrf

Methods

generateToken

public generateToken(string $key, ?int $expire = null): string

Parameters:

Parameter Type Description
$key string
$expire ?int

token

public token(string $key, bool $generate = false, ?int $expire = null): string

Parameters:

Parameter Type Description
$key string
$generate bool
$expire ?int

isValid

public isValid(string $key, string $token, bool $checkpayload = false): bool

Parameters:

Parameter Type Description
$key string
$token string
$checkpayload bool

Inherited methods

__construct

public __construct(\Lime\App $app, mixed $context = null): mixed

Parameters:

Parameter Type Description
$app \Lime\App
$context mixed

initialize

protected initialize(): mixed

__call

public __call(mixed $name, mixed $arguments): mixed

Parameters:

Parameter Type Description
$name mixed
$arguments mixed

__invoke

public __invoke(mixed $helper): mixed

Parameters:

Parameter Type Description
$helper mixed

__get

public __get(mixed $name): mixed

Parameters:

Parameter Type Description
$name mixed