Documentation
Dlang.org
OAuthClient.exchangeCode
mcp
auth
client
OAuthClient
Exchange an authorization code for tokens (PKCE auth-code grant).
class
OAuthClient
@
safe
TokenSet
exchangeCode
(
AuthorizationServerMetadata
as_
,
RegisteredClient
client
,
string
code
,
string
codeVerifier
)
mcp
auth
client
OAuthClient
functions
authorizationUrl
authorizeAndGetCode
clientCredentials
clientIdMetadataClient
clientIdMetadataDocument
discoverAuthServer
discoverProtectedResource
exchangeCode
jwtBearerGrant
probeOperation
probeUnauthorized
refresh
register
registrationApproach
resolveIssuer
tokenExchange
variables
authMethod
clientIdMetadataUrl
privateKeyPem
redirectUri
resource
Exchange an authorization code for tokens (PKCE auth-code grant).