Skip to content

Commit

Permalink
fix: OAuth parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
tiesen243 committed Jan 16, 2025
1 parent 92c0ac1 commit d8e7107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/app/api/auth/[...auth]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const GET = async (
const [provider, isCallback] = (await params).auth
const callbackUrl = `${nextUrl.origin}/api/auth/${provider}/callback`

const authProvider = new OAuth('discord', callbackUrl)
const authProvider = new OAuth(provider, callbackUrl)

if (!isCallback) {
const { url, state } = authProvider.getOAuthUrl()
Expand Down

0 comments on commit d8e7107

Please sign in to comment.