Skip to content
rw3iss Auth

Principal

interface rw3iss\AuthServer\Domain\Principal src/Domain/Principal.php ↗

Discriminated union: a validated token resolves to a UserPrincipal or a ServicePrincipal. Wire-compatible with the NestJS auth-server-client’s AuthenticatedUser interface (auth-server-client/src/interfaces/*).