Function metadataEndpoint

Discovers the user's indieauth-metadata endpoint by fetching the user's profile URL.

The indieauth-metadata endpoint provides the location of the IndieAuth server's authorization endpoint and token endpoint, as well as other relevant information for the client.

https://giacomodebidda.com/.well-known/oauth-authorization-server
https://aaronparecki.com/.well-known/openid-configuration
  • Parameters

    • me: string

    Returns Promise<
        | { error: Error; value?: undefined }
        | { error?: undefined; value: string },
    >