Skip to content

Kirby 5.1.1

$request->auth()

Returns the Auth object if authentication is set

$request->auth(): Kirby\Http\Request\Auth|false|null

Return types

Kirby\Http\Request\Authorfalseornull

This method modifies the existing $request object it is applied to and returns it again.

Parent class

Kirby\Http\Request