interface AuthProviderInterface

Auth provider interface

Methods

void
logout()

Logout

array|null
getUser()

Get current auth user

integer|null
getId()

Get current auth id

bool
authenticate(array $credentials, ServerRequestInterface|null $request = null)

Authenticate user

int|null
getLoginAttempts()

Get login attempts

bool
isLogged()

Check if user is logged

Details

at line 24
void logout()

Logout

Return Value

void

at line 31
array|null getUser()

Get current auth user

Return Value

array|null

at line 38
integer|null getId()

Get current auth id

Return Value

integer|null

at line 47
bool authenticate(array $credentials, ServerRequestInterface|null $request = null)

Authenticate user

Parameters

array $credentials
ServerRequestInterface|null $request

Return Value

bool

at line 54
int|null getLoginAttempts()

Get login attempts

Return Value

int|null

at line 61
bool isLogged()

Check if user is logged

Return Value

bool