Skip to content

Commit

Permalink
リダイレクト先を固定ではなく自分自身に
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-20 committed Nov 4, 2023
1 parent 35e0e8b commit b018bbf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/web/src/features/supabase/supabaseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ export const useSupabase = () => {
const loginWithGitHub = async () => {
const { error } = await supabaseClient.auth.signInWithOAuth({
provider: 'github',
options: {
redirectTo: location.origin,
},
});
if (error) throw error;
};
Expand Down

0 comments on commit b018bbf

Please sign in to comment.