Documentation home page
Search...
⌘K
Ask AI
Support
Dashboard
Dashboard
Search...
Navigation
Social Sign In
Sign In with Discord
Documentation
Reference
Guides
Documentation
Documentation
Community
Blog
Quickstarts
React
Next.js
Vue
Tutorials
React
Next.js
Vue
Database
Configuring Postgres
List of Available Extensions
Performance
AI
Enabling Service
Local Development
Auto-Embeddings
Assistants
Developer Assistant
Authentication
Overview
Users
Social Sign In
Sign In with Apple
Sign In with Discord
Sign In with Facebook
Sign In with GitHub
Sign In with Google
Sign In with LinkedIn
Sign In with Spotify
Sign In with Twitch
Sign In with WorkOS
Social Provider Connect
Email and Password
Magic Links
SMS OTP
WebAuthn and Security Keys
Elevated Permissions
Email Templates
API / Hasura
Configuring Hasura
Permissions
Storage
Overview
CDN
Antivirus
Functions
Overview
Run
Getting Started
Configuration
Networking
Healthchecks
Resources
Registry
Local development
Configuration Overlays
CLI & CI Deployments
CLI
Local Development
Migrate to Nhost Config
Running Multiple Projects
Configuration Overlays
Seeds
On this page
Create Discord Account
Create Discord App
Sign In Users
Social Sign In
Sign In with Discord
Follow this guide to sign in users with Discord.
Create Discord Account
Create a new
Discord account
if you don’t have one already.
Create Discord App
Sign in to the
Discord Developer Portal
.
Click on
New Application
in the top right corner.
Fill in the name of your Discord Application and click
Create
.
Click on
OAuth2
settings in the left menu.
Copy the
Client ID
and paste it into your Nhost OAuth settings for Discord.
Click on
Reset Secret
.
Click
Yes, do it
to generate a new secret.
Copy the
Client Secret
and paste it into your Nhost OAuth settings for Discord.
Click on
Add Redirect
.
Copy and paste the callback URL from your Nhost OAuth settings for Discord to the input field in the Discord Developer portal.
Click
Save Changes
to save the added callback URL.
Sign In Users
Use the
Nhost JavaScript client
to sign in users:
Copy
Ask AI
nhost
.
auth
.
signIn
({
provider:
'discord'
})
Sign In with Apple
Sign In with Facebook
Assistant
Responses are generated using AI and may contain mistakes.