Documentation Index
Fetch the complete documentation index at: https://docs.cloud.coinbase.com/llms.txt
Use this file to discover all available pages before exploring further.
Interface for OAuth manager implementations.
Methods
getOAuthFlowState()
getOAuthFlowState(): Promise<
| null
| OAuthFlowState>;
Gets the OAuth flow state.
Returns
Promise<
| null
| OAuthFlowState>
setOAuthFlowState()
setOAuthFlowState(oauthFlowState: OAuthFlowState): Promise<void>;
Sets the OAuth flow state.
Parameters
| Parameter | Type |
|---|
oauthFlowState | OAuthFlowState |
Returns
Promise<void>
addOAuthStateChangeCallback()
addOAuthStateChangeCallback(callback: OnOAuthStateChangeFn): Promise<void>;
Adds a callback to be called when the OAuth state changes.
Parameters
| Parameter | Type |
|---|
callback | OnOAuthStateChangeFn |
Returns
Promise<void>
clearOAuthFlowState()
clearOAuthFlowState(): Promise<void>;
Clears the OAuth flow state.
Returns
Promise<void>
handleOAuthCode()
handleOAuthCode(url?: string): Promise<void>;
Awaitable method whose promise only resolves when the OAuth manager is ready to be used.
Parameters
Returns
Promise<void>