Social Sign-In Configuration
Melody Auth supports the following social identity providers out of the box:
- GitHub
- Discord
- Apple
Google Sign-In
- Set
GOOGLE_AUTH_CLIENT_ID
inserver/wrangler.toml
vars section.
Facebook Sign-In
- Set
FACEBOOK_AUTH_CLIENT_ID
inserver/wrangler.toml
vars section. - Set
FACEBOOK_AUTH_CLIENT_SECRET
inserver/.dev.vars
section or in Cloudflare Worker environment variables.
GitHub Sign-In
- Set
GITHUB_AUTH_CLIENT_ID
inserver/wrangler.toml
vars section. - Set
GITHUB_AUTH_CLIENT_SECRET
inserver/.dev.vars
section or in Cloudflare Worker environment variables. - In your GitHub App settings, set the callback URL to [your auth server doamin]/identity/v1/authorize-github, e.g., http://localhost:8787/identity/v1/authorize-github
Discord Sign-In
- Set
DISCORD_AUTH_CLIENT_ID
inserver/wrangler.toml
vars section. - Set
DISCORD_AUTH_CLIENT_SECRET
inserver/.dev.vars
section or in Cloudflare Worker environment variables. - In your Discord App settings, set the redirect URI to [your auth server domain]/identity/v1/authorize-discord, e.g., http://localhost:8787/identity/v1/authorize-discord
Apple Sign-In
- Set
APPLE_AUTH_CLIENT_ID
inserver/wrangler.toml
vars section. - Set
APPLE_AUTH_CLIENT_SECRET
inserver/.dev.vars
section or in Cloudflare Worker environment variables. This client secret has a limited lifespan and needs to be periodically updated. https://developer.apple.com/documentation/AccountOrganizationalDataSharing/creating-a-client-secret - In your Apple App settings, set the redirect URI to [your auth server domain]/identity/v1/authorize-apple, e.g., http://localhost:8787/identity/v1/authorize-apple