Skip to content

Kirby 5.0.4

$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

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

Parent class

Kirby\Cms\Auth