Skip to content

VenAuth

class Vendidit\AuthServer\Laravel\Facades\VenAuth Source: src/Facades/VenAuth.php

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

@see AuthClient