Test accounts can be used to build automated tests, for local development, or to reduce friction during Apple’s App Store review process for mobile apps. A new set of credentials are created each time you enable the test account, and the old one is revoked to keep your account secure.Documentation Index
Fetch the complete documentation index at: https://docs.privy.io/llms.txt
Use this file to discover all available pages before exploring further.
To use these test accounts, your app must support email or SMS login. Testing other login flows
can either be automated with a library like Playwright, or by
completing the flow manually, as it requires authorization with other APIs (such as social
providers).
Enabling test accounts
To enable a test account for your app and get its login credentials:- Go to the User management > Authentication > Advanced tab of the Privy Dashboard
- Turn on the Enable test accounts toggle
XXXX/XXXXXX in the credentials below should be substituted with the values you see in the User management > Authentication > Advanced page of the Dashboard. You cannot substitute arbitrary values for XXXX/XXXXXX or use plus addressing; you must use the credentials from the Dashboard exactly.
| phone | OTP (for either) | |
|---|---|---|
[email protected] | +1 555 555 XXXX | XXXXXX |
Depending on when you created your Privy app, you may have a legacy test account enabled with the
login credentials
[email protected] or +1 555 555 5555. Please see the User management >
Authentication > Advanced page of the Privy Dashboard to determine if this is the case for your
app.Getting a test access token programmatically
You can programmatically get an access token for your app’s test account using thegetTestAccessToken method.

