You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/FusionAuthClient.ts
+37-1Lines changed: 37 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -901,7 +901,7 @@ export class FusionAuthClient {
901
901
902
902
/**
903
903
* Exchanges an OAuth authorization code for an access token.
904
-
* If you will be using the Authorization Code grant, you will make a request to the Token endpoint to exchange the authorization code returned from the Authorize endpoint for an access token.
904
+
* Makes a request to the Token endpoint to exchange the authorization code returned from the Authorize endpoint for an access token.
905
905
*
906
906
* @param {string} code The authorization code returned on the /oauth2/authorize response.
907
907
* @param {string} client_id The unique client identifier. The client Id is the Id of the FusionAuth Application in which you you are attempting to authenticate.
@@ -924,6 +924,33 @@ export class FusionAuthClient {
924
924
.go();
925
925
}
926
926
927
+
/**
928
+
* Exchanges an OAuth authorization code and code_verifier for an access token.
929
+
* Makes a request to the Token endpoint to exchange the authorization code returned from the Authorize endpoint and a code_verifier for an access token.
930
+
*
931
+
* @param {string} code The authorization code returned on the /oauth2/authorize response.
932
+
* @param {string} client_id (Optional) The unique client identifier. The client Id is the Id of the FusionAuth Application in which you you are attempting to authenticate. This parameter is optional when the Authorization header is provided.
933
+
* @param {string} client_secret (Optional) The client secret. This value may optionally be provided in the request body instead of the Authorization header.
934
+
* @param {string} redirect_uri The URI to redirect to upon a successful request.
935
+
* @param {string} code_verifier The random string generated previously. Will be compared with the code_challenge sent previously, which allows the OAuth provider to authenticate your app.
* If you will be using the Refresh Token Grant, you will make a request to the Token endpoint to exchange the user’s refresh token for an access token.
0 commit comments