Available Authentication Methods
DeviceAuth (Recommended)
The recommended authentication method for production bots. Device authentication uses stored credentials that persist across sessions.AdvancedAuth (Best for Getting Started)
A flexible authentication method that tries multiple authentication strategies automatically. Perfect for development and getting started quickly.DeviceCodeAuth
Authenticate using device code flow. Opens a browser for login and doesn’t require copying codes manually.AuthorizationCodeAuth
Authenticate using a one-time authorization code from Epic Games.ExchangeCodeAuth
Authenticate using an exchange code. Requires custom solutions to obtain the code.Comparison
| Method | Ease of Use | Production Ready | Requires Manual Input | Persists Across Sessions |
|---|---|---|---|---|
| DeviceAuth | Medium | Yes | No (after initial setup) | Yes |
| AdvancedAuth | High | Yes | Optional | Yes (auto-generates device auth) |
| DeviceCodeAuth | High | Yes | Yes (browser login) | No |
| AuthorizationCodeAuth | Medium | No | Yes (copy code) | No |
| ExchangeCodeAuth | Low | No | Yes (custom solution) | No |
Quick Start Recommendation
- For Development: Start with
AdvancedAuthorDeviceCodeAuthfor the easiest setup - For Production: Use
DeviceAuthwith stored credentials for reliability - Migration Path: Use
AdvancedAuthto automatically generate device auth credentials, then switch toDeviceAuth
Common Attributes
All authentication methods provide these attributes:The Authorization header for use with Fortnite endpoints. Use this if you’re making HTTP requests that aren’t already implemented.
The account ID of the authenticated user.
Security Best Practices
- Store device auth credentials securely
- Use environment variables for sensitive data
- Rotate credentials periodically
- Monitor for unauthorized access
- When device auth is compromised, reset your Epic Games password to invalidate all device auths