You must call this endpoint to ask for authorization code
The client_id that you should have obtained while registering your app with the auth server or EHR (as set in the configuration options)
Your client private JWK if you have one (for asymmetric confidential clients)
Your client public JWKS url if you have one (for asymmetric confidential clients that have registered a JWKS URL)
Your client secret if you have one (for symmetric confidential clients)
PKCE code challenge base value.
PKCE code verification, formatted with base64url-encode (RFC 4648 ยง 5) without padding, which is NOT the same as regular base64 encoding.
If true
, the app requested to be initialized in the specified AuthorizeParams.target.
Otherwise, the app requested to be initialized in the window in which
authorize was called.
An Unix timestamp (JSON numeric value representing the number of seconds since 1970). This updated every time an access token is received from the server.
The key under which this state is persisted in the storage
The password for basic auth. If present, username
must also be provided.
The URI to redirect to after successful authorization, as set in the configuration options.
You could register new SMART client at this endpoint (if the server supports dynamic client registration)
The access scopes that you requested in your options (or an empty string).
The base URL of the Fhir server. The library should have detected it at authorization time from request query params of from config options.
The response object received from the token endpoint while trying to exchange the auth code for an access token (if you have reached that point).
You must call this endpoint to exchange your authorization code for an access token.
The username for basic auth. If present, password
must also be provided.
Generated using TypeDoc
Describes the state that should be passed to the Client constructor. Everything except
serverUrl
is optional