Skip to content

Kirby 3.7.5

$auth->type()

Returns the current authentication type

$auth->type(bool $allowImpersonation = true): string

Parameters

Name Type Default Description
$allowImpersonation bool true If set to false, 'impersonate' won't
be returned as authentication type
even if an impersonation is active

Return type

string

Parent class

Kirby\Cms\Auth