Supported Server Types
EmbyTok can connect to:- Emby / Jellyfin - Full support with native API authentication
- Plex - Using X-Plex-Token authentication
- Local Folder - Browse videos directly from your device
- Folder Service - LAN-based file server for sharing videos across devices
Connecting to Emby/Jellyfin
Enter server URL
Input your Emby or Jellyfin server address in the format:The URL will be automatically normalized - you can enter it with or without
http://.Provide credentials
Enter your username and password. For Emby/Jellyfin:
- Username is required
- Password is optional (leave blank for users without passwords)
Authentication Headers
EmbyTok uses the following authentication header format:Server Configuration Object
After successful authentication, the following configuration is stored:Server URL without trailing slash (e.g.,
http://192.168.1.100:8096)User’s display name from the server
Unique user identifier from Emby/Jellyfin
Access token for API requests
Set to
'emby' for both Emby and Jellyfin serversCORS Configuration
EmbyTok requires CORS to be enabled on your Emby/Jellyfin server. If you encounter connection errors, ensure:- CORS is enabled in your server settings
- The EmbyTok web app origin is allowed
- Your server is accessible from the client device
Connecting to Plex
Obtain X-Plex-Token
Get your Plex token from:
- Plex Web App → Settings → Account → Show Advanced
- Or extract from your Plex Media Server XML files
Enter server details
- Server URL:
http://192.168.1.10:32400 - Username: Optional (defaults to “Plex User”)
- Password: Enter your X-Plex-Token here
Plex Authentication Headers
Machine Identifier
Plex uses a machine identifier for constructing playlist URIs. EmbyTok automatically:- Fetches the identifier from
/identityendpoint - Stores it as
userIdin the configuration - Uses it for favorite playlist operations:
User Settings Storage
All server configurations are stored in browser localStorage:Security Considerations
Login Component
The login interface is implemented incomponents/Login.tsx with the following features:
- Server type selector (Emby/Jellyfin, Plex, Local, Folder Service)
- Dynamic form fields based on selected server type
- Real-time URL normalization
- Error handling with user-friendly messages
- Support for both authenticated and guest users
URL Normalization
Error Handling
Common connection errors and their solutions:| Error | Cause | Solution |
|---|---|---|
| ”Authentication failed” | Invalid credentials | Verify username/password or token |
| ”CORS error” | Server doesn’t allow origin | Enable CORS on media server |
| ”Connection refused” | Server not accessible | Check server URL and network |
| ”Plex connection failed” | Invalid token | Use valid X-Plex-Token |
Next Steps
After connecting to your server:- Browse your media libraries
- Configure video orientation filters
- Set up favorites and playlists
- Explore the admin panel (for Folder Service mode)