verifyAuthToken
method will make a request to Privy’s API to fetch the verification key for your app. Although it is cached for reuse, you can avoid this API request entirely by copying your verification key from the Configuration > App settings > Basics tab of the Dashboard, under “Verify with key instead”, and passing it as a second parameter to verifyAuthToken
:
HttpOnly
cookies (react-auth
only)HttpOnly
cookies, on initial page load, the Privy SDK will start by making a call to fetch app details on our default https://auth.privy.io
API URL. In HttpOnly
cookie mode however, all your requests are routed through https://privy.<customdomain.com>
. To avoid an occasional extra call on page load, we recommend explicitly setting the apiUrl
in your PrivyProvider
:
HttpOnly
cookies, you will need to remove this in order for your app to continue functioning properly. For a smooth transition, first remove the apiUrl
, deploy, and then disable HttpOnly cookies.