Function authorizationRequestUrl

Builds the URL for the authorization endpoint.

In the request to the authorization endpoint, the query parameter scope is optional. If the IndieAuth client omits it, the authorization server MUST NOT issue an access token in exchange of an authorization code, and should instead return the profile URL. This means that the user will still be able to authenticate using the request, but the IndieAuth client will not be granted any scope (i.e. the user will not be authorized).

  • Parameters

    • config: Config

    Returns { code_verifier: string; redirect_url: string; state: string }