Basicis - Core

Logo

As the name says, it is made to be basic and direct.

View the Project on GitHub basicis/core

Basicis\Auth\Auth

Auth Class Basicis default authentication class

Methods

Name Description
getUser Function getUser
Get a Auth User by ServerRequestInterface  
login Function function
Check Auth User and return a string token of on success or null in error case  

Auth::getUser

Description

public static getUser (\ServerRequestInterface $request, string|null $authClass)

Function getUser Get a Auth User by ServerRequestInterface

Parameters

Return Values

\AuthInterface|null


Auth::login

Description

public static login (\ServerRequestInterface $request, array $findBy, string $passKey, string $appKey, string $expiration, string $nobefore)

Function function Check Auth User and return a string token of on success or null in error case

Parameters

Return Values

string|null