Skip to content

Commit

Permalink
Fix callback
Browse files Browse the repository at this point in the history
  • Loading branch information
midudev committed Sep 4, 2023
1 parent cbf165f commit 0f6a6a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sections/ticket-home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ export const TicketHome = ({ ticketNumber, username, initialFlavor }) => {
const { data, error } = await supabase.auth.signInWithOAuth({
provider: 'github',
options: {
redirectTo: 'http://localhost:3000/api/auth/callback'
redirectTo:
process.env.NODE_ENV !== 'production'
? 'http://localhost:3000/api/auth/callback'
: 'https://miduconf.com/api/auth/callback'
}
})
}
Expand Down

1 comment on commit 0f6a6a6

@vercel
Copy link

@vercel vercel bot commented on 0f6a6a6 Sep 4, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.