© 2026 Hedgehog Software, LLC
const signIn = async () => { const data = await authClient.signIn.social({ provider: "discord", scopes: ["guilds"], }) if (data.error) { toast.error("Failed to sign in") return } console.log(data.data) }
https://discord.com/oauth2/authorize?scope=identify+email+identify+guilds&response_type=code&client_id=1355667186252910733&redirect_uri=https%3A%2F%2Fdev.domain.xyz%2Fapi%2Fauth%2Fcallback%2Fdiscord&state=eVUCntIyBg3F2ebiRDryvuwbB2C9OFO0&prompt=none
{ "_id": { "$oid": "67e883c1b4193eb74610f598" }, "identifier": "eVUCntIyBg3F2ebiRDryvuwbB2C9OFO0", "value": "{\"callbackURL\":\"https://dev.domain.xyz/api/auth/callback/discord\",\"codeVerifier\":\"dg6yhQrgdkJaiZLaygUIGKrSriz7tkqVrcc9wjBrf5PuqEqlvkT4ELXRQEEgnBJRhHsUfWU_D_9a0RrCCAyI3r79wdkaIvlNLoOgAQbSpMT5deGbR8a2c3wEE9BOVcNA\",\"expiresAt\":1743291929748}", "expiresAt": { "$date": "2025-03-29T23:45:29.748Z" }, "createdAt": { "$date": "2025-03-29T23:35:29.748Z" }, "updatedAt": { "$date": "2025-03-29T23:35:29.748Z" } }