Exchanges an authorization code and PKCE verifier for OAuth tokens.
The function rejects non-success HTTP responses. Treat the returned access token and optional refresh token as secrets.
Optional
Contains the CA.
Contains the client ID.
Contains the code.
Contains the logger.
Contains the redirect uri.
Contains the token endpoint.
Contains the verifier.
Exchanges an authorization code and PKCE verifier for OAuth tokens.
The function rejects non-success HTTP responses. Treat the returned access token and optional refresh token as secrets.