Hook to get the access token for the current user.
Function to get the access token for the current user
const { getAccessToken } = useGetAccessToken();const handleGetAccessToken = async () => { const accessToken = await getAccessToken(); console.log("Access Token:", accessToken);}; Copy
const { getAccessToken } = useGetAccessToken();const handleGetAccessToken = async () => { const accessToken = await getAccessToken(); console.log("Access Token:", accessToken);};
Hook to get the access token for the current user.