Skip to main content

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.

function useGetAccessToken(): {
  getAccessToken: () => Promise<null | string>;
};
Hook to get the access token for the current user.

Returns

{
  getAccessToken: () => Promise<null | string>;
}
Function to get the access token for the current user
NameType
getAccessToken()() => Promise<null | string>

Example

const { getAccessToken } = useGetAccessToken();

const handleGetAccessToken = async () => {
  const accessToken = await getAccessToken();
  console.log("Access Token:", accessToken);
};