Skip to content

Commit

Permalink
still trying to figure out what's going wrong. invalid url being thro…
Browse files Browse the repository at this point in the history
…wn during auth
  • Loading branch information
siddheshraze committed Feb 27, 2025
1 parent 3ce85bd commit 9c2e2f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const { auth, handlers, signIn, signOut } = NextAuth({
}
console.log('userEmail: ', userEmail);
try {
const baseUrl = process.env.NEXTAUTH_URL! || process.env.AUTH_URL! || 'http://localhost:3000';
const baseUrl = process.env.NEXTAUTH_URL || process.env.AUTH_URL || 'http://localhost:3000';
const customSigninUrl = new URL(`/api/customsignin?email=${encodeURIComponent(userEmail as string)}`, baseUrl);
const response = await fetch(customSigninUrl.toString());
console.log('response: ', response);
Expand Down

0 comments on commit 9c2e2f2

Please sign in to comment.