OAuth - TypeScript SDK
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
(oAuth)
Overview
OAuth authentication endpoints
Available Operations
- exchangeAuthCodeForAPIKey - Exchange authorization code for API key
- createAuthCode - Create authorization code
exchangeAuthCodeForAPIKey
Exchange an authorization code from the PKCE flow for a user-controlled API key
Example Usage
Standalone function
The standalone function version of this method:
React hooks and utilities
This method can be used in React components through the following hooks and associated utilities.
Check out this guide for information about each of the utilities below and how to get started using React hooks.
Parameters
Response
Promise<operations.ExchangeAuthCodeForAPIKeyResponse>
Errors
createAuthCode
Create an authorization code for the PKCE flow to generate a user-controlled API key
Example Usage
Standalone function
The standalone function version of this method:
React hooks and utilities
This method can be used in React components through the following hooks and associated utilities.
Check out this guide for information about each of the utilities below and how to get started using React hooks.
Parameters
Response
Promise<operations.CreateAuthKeysCodeResponse>