AuthProviderInterface
in
Auth provider interface
Table of Contents
Methods
- authenticate() : bool
- Authenticate user
- getId() : int|null
- Get current auth id
- getLoginAttempts() : int|null
- Get login attempts
- getUser() : array<string|int, mixed>|null
- Get current auth user
- isLogged() : bool
- Check if user is logged
- logout() : void
- Logout
Methods
authenticate()
Authenticate user
public
authenticate(array<string|int, mixed> $credentials[, ServerRequestInterface|null $request = null ]) : bool
Parameters
- $credentials : array<string|int, mixed>
- $request : ServerRequestInterface|null = null
Return values
boolgetId()
Get current auth id
public
getId() : int|null
Return values
int|nullgetLoginAttempts()
Get login attempts
public
getLoginAttempts() : int|null
Return values
int|nullgetUser()
Get current auth user
public
getUser() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullisLogged()
Check if user is logged
public
isLogged() : bool
Return values
boollogout()
Logout
public
logout() : void