VenAuth
See also
- AuthClient
Annotations
@methodstatic \rw3iss\AuthServer\Domain\Principal|null currentPrincipal()@methodstatic \rw3iss\AuthServer\Domain\UserPrincipal|null currentUser()@methodstatic \rw3iss\AuthServer\Domain\Principal validateToken(string $jwt)@methodstatic \rw3iss\AuthServer\Domain\Principal|null validateBearer(?string $header)@methodstatic bool isAuthenticated()@methodstatic \rw3iss\AuthServer\Domain\AuthResponse login(string $email, string $password, array $opts = [])@methodstatic \rw3iss\AuthServer\Domain\AuthResponse register(array $payload)@methodstatic \rw3iss\AuthServer\Domain\AuthResponse refresh(?string $refreshToken = null, array $opts = [])@methodstatic void logout()@methodstatic void logoutAll()@methodstatic array<string,mixed> me(?string $accessToken = null)@methodstatic \rw3iss\AuthServer\Flows flows()@methodstatic array<string,mixed> authenticatedRequest(string $method, string $path, ?array $body = null, array $headers = [])