Function clientMetadata

Fetches the IndieAuth client metadata.

Clients SHOULD publish an OAuth Client ID Metadata Document (a JSON document) at the client identifier URL. The authorization server SHOULD fetch the URL to find more information about the client.

  • Parameters

    • client_id: string
    • Optionaloptions: Options

    Returns Promise<
        | { error: Error; value?: undefined }
        | {
            error?: undefined;
            value: {
                client_id: string;
                client_name?: string;
                client_uri: string;
                logo_uri?: string;
                redirect_uris?: string[];
            };
        },
    >