AuthenticationInterface
in
Table of Contents
Methods
- isAuthenticated() : bool
- login() : mixed|null
- Login with username and password
- logout() : void
- refresh() : mixed|null
- Refresh authentication token
Methods
isAuthenticated()
public
isAuthenticated(string $token) : bool
Parameters
- $token : string
Return values
boollogin()
Login with username and password
public
login(string $username, string $password) : mixed|null
Parameters
- $username : string
- $password : string
Tags
Return values
mixed|null —Response data
logout()
public
logout(string $token) : void
Parameters
- $token : string
Tags
refresh()
Refresh authentication token
public
refresh(string $token) : mixed|null
Parameters
- $token : string
Tags
Return values
mixed|null —Response data