type CustomAuth = { getJwt: () => Promise<string | undefined>; };
getJwt
Promise
string
undefined
lines // With Auth0 (React) const { getAccessTokenSilently } = useAuth0(); customAuth: { getJwt: getAccessTokenSilently }
lines // With Auth0 (React Native) const { getCredentials } = useAuth0(); customAuth: { getJwt: async () => { const creds = await getCredentials(); return creds?.accessToken; } }
Was this page helpful?