Skip to content

Commit 86cec9d

Browse files
committed
feat(auth): implement social and OIDC provider authentication support
1 parent 7e85490 commit 86cec9d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/studio/src/components/auth/social-sign-in-buttons.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ export function SocialSignInButtons({ mode }: Props) {
4747
className="w-full"
4848
onClick={() =>
4949
client.auth.signInWithProvider(p.id, {
50-
callbackURL: window.location.origin + '/login',
51-
errorCallbackURL: window.location.origin + '/login',
50+
callbackURL: window.location.origin + import.meta.env.BASE_URL + 'login',
51+
errorCallbackURL: window.location.origin + import.meta.env.BASE_URL + 'login',
5252
type: p.type ?? 'social',
5353
})
5454
}

0 commit comments

Comments
 (0)