How Environments Work
The environment is determined by your API key prefix:Creating API Keys
- Go to OFAuth Dashboard > Developers > API Keys
- Create keys for both environments:
- Sandbox key for development and testing
- Live key for production
Sandbox Test Credentials
Use these test accounts to complete Link authentication flows:
Examples:
Any identifier works (e.g.,
demo, user123, test). The domain controls the behavior.What You Can Test
Environment Differences
Switching Environments
Simply change your API key—no code changes required:Common Troubleshooting
Wrong password error
Wrong password error
Use
good-password for all sandbox test accounts.OTP required but not expected
OTP required but not expected
Only
*-otp.sandbox.com accounts require OTP. The code is always 123456.Invalid email error
Invalid email error
Verify the domain format:
creator.sandbox.com, creator-otp.sandbox.com, fan.sandbox.com, or fan-otp.sandbox.com.Data doesn't persist
Data doesn't persist
Sandbox data is deterministic fixtures, not persistent storage. Treat responses as test fixtures.
Next Steps
Quickstart
Get your first API call working
Link Authentication
Connect test accounts