Skip to content
docsv0.9.0

CredentialType

The kind of a {@see Credential}, or the ceremony that produced a session — the closed set the framework recognises. A `Bearer` credential is the `Authorization: Bearer …` token; a `Cookie` credential is the session-cookie value; `Passkey` marks a WebAuthn ceremony that mints a session (a vocabulary marker for logs/UI/reports — NOT a per-request credential, and it never flows through {@see Contracts\CredentialVerifier}). The set is deliberately closed, consistent with {@see ActorType}: a credential's kind is identity, not a string a caller can invent.

CredentialType::cases()

public static function cases(): array

CredentialType::from()

public static function from(string|int $value): static

Parameters

Parameters of from()
NameTypeDescription
$valuestring|int

CredentialType::tryFrom()

public static function tryFrom(string|int $value): ?static

Parameters

Parameters of tryFrom()
NameTypeDescription
$valuestring|int