MuseMVP Docs
Social Login

Google OAuth

Configure Google OAuth login for MuseMVP.

MuseMVP supports Google OAuth via Better Auth social providers. Users can sign in or sign up directly with a Google account in one click.

Setup Steps

Create Google OAuth Credentials

Go to Google Cloud Console and create or select a project. Google Cloud Console Google Cloud Console

Tip

If you have not configured a Google OAuth app before Google OAuth App Callback URL

Google OAuth App Callback URL

Create OAuth 2.0 Client ID

In APIs & Services → Credentials, create an OAuth client ID, select Web application as the application type, and set Authorized redirect URI to: <your-site-url>/api/auth/callback/google Google OAuth App Callback URL

Client ID and Client Secret

Add both values to .env. Google OAuth App Client ID and Client Secret

GOOGLE_CLIENT_ID="3asfasdfasdfasdftest.apps.googleusercontent.com"
GOOGLE_CLIENT_SECRET="GOCSPX-FSADFASDFFASDuJjNxyMTV-hvj"
NEXT_PUBLIC_GOOGLE_ONE_TAP_CLIENT_ID="3asfasdfasdfasdftest.apps.googleusercontent.com"

Ensure config.auth.gates.allowSocialSignIn is true in src/config/index.ts.


Feature Toggle

Social login can be disabled via configuration:

// src/config/index.ts
auth: {
  gates: {
    allowSocialSignIn: false,  // Disables Google and GitHub
  },
},