PHP Interface Chrisbjr\ApiGuard\Contracts\Providers\Auth

Show file Open project: chrisbjr/api-guard

Public Methods

Method Description
byCredentials ( array $credentials ) : boolean Check a user's credentials
byId ( mixed $id ) : boolean Authenticate a user via the id
user ( ) : mixed Get the currently authenticated user

Method Details

byCredentials() public method

Check a user's credentials
public byCredentials ( array $credentials ) : boolean
$credentials array
return boolean

byId() public method

Authenticate a user via the id
public byId ( mixed $id ) : boolean
$id mixed
return boolean

user() public method

Get the currently authenticated user
public user ( ) : mixed
return mixed