OptionalauthorizeYou must call this endpoint to ask for authorization code
OptionalclientThe client_id that you should have obtained while registering your app with the auth server or EHR (as set in the configuration options)
OptionalclientYour client private JWK if you have one (for asymmetric confidential clients)
OptionalclientYour client public JWKS url if you have one (for asymmetric confidential clients that have registered a JWKS URL)
OptionalclientYour client secret if you have one (for symmetric confidential clients)
OptionalcodePKCE code challenge base value.
OptionalcodePKCE code verification, formatted with base64url-encode (RFC 4648 § 5) without padding, which is NOT the same as regular base64 encoding.
OptionalcompleteIf 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.
OptionalexpiresAn Unix timestamp (JSON numeric value representing the number of seconds since 1970). This updated every time an access token is received from the server.
OptionalkeyThe key under which this state is persisted in the storage
OptionalpasswordThe password for basic auth. If present, username must also be provided.
OptionalredirectThe URI to redirect to after successful authorization, as set in the configuration options.
OptionalregistrationYou could register new SMART client at this endpoint (if the server supports dynamic client registration)
OptionalscopeThe 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.
OptionaltokenThe response object received from the token endpoint while trying to exchange the auth code for an access token (if you have reached that point).
OptionaltokenYou must call this endpoint to exchange your authorization code for an access token.
OptionalusernameThe username for basic auth. If present, password must also be provided.
Describes the state that should be passed to the Client constructor. Everything except
serverUrlis optional