Skip to content

Kirby 6.0.0

$basicAuthMethod->user()

Returns the user resolved from the basic auth header

$basicAuthMethod->user(BasicAuth|null $auth = null): User|null

Parameters

Name Type Default
$auth Kirby\Http\Request\Auth\BasicAuthornull null

Return types

Kirby\Cms\Userornull

Parent class

Kirby\Auth\Method\BasicAuthMethod