Skip to content

Conversation

@bcigdemoglu
Copy link

@bcigdemoglu bcigdemoglu commented Nov 12, 2025

Changed Discord OAuth redirectURI from options.productionUrl to options.baseUrl to enable proper redirect handling in local development environments.

Problem:

  • Discord OAuth callback was using productionUrl which prevented local development testing
  • Local redirects would fail because they were pointing to production Vercel URL which were undefined in local

Solution:

  • Use baseUrl instead which correctly adapts to the current environment (local or production)
  • This matches the pattern already used for the main baseURL configuration

Changes:

  • Updated packages/auth/src/index.ts line 37

@vercel
Copy link

vercel bot commented Nov 12, 2025

@bcigdemoglu is attempting to deploy a commit to the t3-oss Team on Vercel.

A member of the Team first needs to authorize it.

@bcigdemoglu
Copy link
Author

How can I get a review on this PR @carloschida @t3dotgg ?

clientId: options.discordClientId,
clientSecret: options.discordClientSecret,
redirectURI: `${options.productionUrl}/api/auth/callback/discord`,
redirectURI: `${options.baseUrl}/api/auth/callback/discord`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm wont this break oauth proxy?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants