Melody AuthMelody Auth
  • Auth Server Setup
  • Admin Panel Setup
  • Email Provider Setup
  • SMS Provider Setup
  • External Identity Providers

    • Social Sign-In Provider Setup
    • OIDC SSO Setup
    • SAML SSO Setup
  • Main Features

    • Authentication
    • JWT & JWKS
    • Multi-Factor Authentication
    • Role-Based Access Control
    • Policies
    • Organizations
  • Additional Features

    • User Attributes
    • App Banners
    • Organization Groups
    • Impersonation
    • Log Management
  • Customization

    • Auth Server Configuration
    • Branding
    • Localization
  • Frontend SDKs

    • React SDK
    • Angular SDK
    • Vue SDK
    • Web SDK
  • Backend APIs

    • S2S API Setup
    • S2S API Swagger
    • Embedded Auth API Setup
    • Embedded Auth API Swagger
  • Deployment Pipelines
  • Rotate JWT Secret
  • English
  • zh-CN
  • Auth Server Setup
  • Admin Panel Setup
  • Email Provider Setup
  • SMS Provider Setup
  • External Identity Providers

    • Social Sign-In Provider Setup
    • OIDC SSO Setup
    • SAML SSO Setup
  • Main Features

    • Authentication
    • JWT & JWKS
    • Multi-Factor Authentication
    • Role-Based Access Control
    • Policies
    • Organizations
  • Additional Features

    • User Attributes
    • App Banners
    • Organization Groups
    • Impersonation
    • Log Management
  • Customization

    • Auth Server Configuration
    • Branding
    • Localization
  • Frontend SDKs

    • React SDK
    • Angular SDK
    • Vue SDK
    • Web SDK
  • Backend APIs

    • S2S API Setup
    • S2S API Swagger
    • Embedded Auth API Setup
    • Embedded Auth API Swagger
  • Deployment Pipelines
  • Rotate JWT Secret
  • English
  • zh-CN
  • Social Sign-In Configuration

Social Sign-In Configuration

Melody Auth supports the following social identity providers out of the box:

  • Google
  • Facebook
  • GitHub
  • Discord
  • Apple

Google Sign-In

  1. Set GOOGLE_AUTH_CLIENT_ID in server/wrangler.toml vars section.

Facebook Sign-In

  1. Set FACEBOOK_AUTH_CLIENT_ID in server/wrangler.toml vars section.
  2. Set FACEBOOK_AUTH_CLIENT_SECRET in server/.dev.vars section or in Cloudflare Worker environment variables.

GitHub Sign-In

  1. Set GITHUB_AUTH_CLIENT_ID in server/wrangler.toml vars section.
  2. Set GITHUB_AUTH_CLIENT_SECRET in server/.dev.vars section or in Cloudflare Worker environment variables.
  3. 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

  1. Set DISCORD_AUTH_CLIENT_ID in server/wrangler.toml vars section.
  2. Set DISCORD_AUTH_CLIENT_SECRET in server/.dev.vars section or in Cloudflare Worker environment variables.
  3. 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

  1. Set APPLE_AUTH_CLIENT_ID in server/wrangler.toml vars section.
  2. Set APPLE_AUTH_CLIENT_SECRET in server/.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
  3. 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
Last Updated: 6/1/25, 2:26 AM
Contributors: Baozier