Interface AuthServerConfig

Endpoint configuration consumed by AuthProvider.

Every *Path value is resolved relative to serverUrl.

interface AuthServerConfig {
    introspectPath: string;
    loginPath: string;
    logoutPath: string;
    mePath: string;
    registerPath: string;
    serverUrl: string;
}

Properties

introspectPath: string

Token introspection endpoint (available to callers that need it).

loginPath: string

POST { username, password } -> { access_token, user }.

logoutPath: string

Called on logout; failures are ignored (token is cleared locally).

mePath: string

Returns the current AuthUser for a valid bearer token.

registerPath: string

POST { username, password } to create an account.

serverUrl: string

Base URL of the auth server, for example "https://api.example.com".