Skip to content

Kirby 6.0.0

$auth->switchChallenge()

Switches the active challenge within the current pending session and hides all errors (e.g. rate limits) to avoid leaking whether the user exists

$auth->switchChallenge(string $type): Challenge|null

Parameters

Name Type Default
$typerequired string no default value

Return types

Kirby\Auth\Challengeornull

Exceptions

Type Description
Throwable Any error from switching the challenge (only in debug mode)

Parent class

Kirby\Auth\Auth