Server Authentication with External Credentials Exchange
Before using this method, you must configure your identity provider in the Developer Portal. Exchange the external provider’s token for a Discord access token from your game server:external_auth_type values.
External Credentials Exchange Response
How the Flow Works
Once authentication is complete, you can use the access token as you would a full Discord user’s access token. See Managing Provisional Accounts for token refresh, storage, and display names.Error Handling
Common error codes and solutions when creating a provisional account:
If you are using OIDC, you may encounter more specific errors:
Next Steps
Configuring Identity Providers
Set up OIDC, Steam, EOS, and other providers, and review the OIDC requirements.
Managing Provisional Accounts
Refresh access tokens and set display names.
#social-sdk-dev-help channel for support from the community.
If you encounter a bug while working with the Social SDK, please report it here: https://dis.gd/social-sdk-bug-report