From 6a6c0934d5b31ece2baec1004e30990911d2b1e6 Mon Sep 17 00:00:00 2001 From: Gib Date: Sun, 8 Jun 2025 18:31:35 -0500 Subject: [PATCH] Got Apple Auth working --- src/app/(auth-pages)/sign-up/page.tsx | 4 ++-- src/components/default/auth/SignInWithApple.tsx | 4 ++-- src/components/default/auth/SignInWithMicrosoft.tsx | 4 ++-- src/lib/actions/auth.ts | 1 - 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/app/(auth-pages)/sign-up/page.tsx b/src/app/(auth-pages)/sign-up/page.tsx index e802bcc..b62894a 100644 --- a/src/app/(auth-pages)/sign-up/page.tsx +++ b/src/app/(auth-pages)/sign-up/page.tsx @@ -201,8 +201,8 @@ const SignUp = () => { or - - + + ); diff --git a/src/components/default/auth/SignInWithApple.tsx b/src/components/default/auth/SignInWithApple.tsx index d63937a..3c3100c 100644 --- a/src/components/default/auth/SignInWithApple.tsx +++ b/src/components/default/auth/SignInWithApple.tsx @@ -5,7 +5,7 @@ import { useAuth } from '@/components/context/auth'; import { useRouter } from 'next/navigation'; import { useState } from 'react'; import Image from 'next/image'; -import { Button, type buttonVariants } from '@/components/ui'; +import { type buttonVariants } from '@/components/ui'; import { type ComponentProps } from 'react'; import { type VariantProps } from 'class-variance-authority'; @@ -68,7 +68,7 @@ export const SignInWithApple = ({ width={22} height={22} /> -

Sign in with Apple

+

Sign In with Apple

{statusMessage && } diff --git a/src/components/default/auth/SignInWithMicrosoft.tsx b/src/components/default/auth/SignInWithMicrosoft.tsx index 91355e7..ba16fc7 100644 --- a/src/components/default/auth/SignInWithMicrosoft.tsx +++ b/src/components/default/auth/SignInWithMicrosoft.tsx @@ -4,7 +4,7 @@ import { StatusMessage, SubmitButton } from '@/components/default'; import { useAuth } from '@/components/context/auth'; import { useState } from 'react'; import Image from 'next/image'; -import { Button, type buttonVariants } from '@/components/ui'; +import { type buttonVariants } from '@/components/ui'; import { type ComponentProps } from 'react'; import { type VariantProps } from 'class-variance-authority'; @@ -61,7 +61,7 @@ export const SignInWithMicrosoft = ({ width={20} height={20} /> -

Sign in with Microsoft

+

Sign In with Microsoft

{statusMessage && } diff --git a/src/lib/actions/auth.ts b/src/lib/actions/auth.ts index a605643..816ef76 100644 --- a/src/lib/actions/auth.ts +++ b/src/lib/actions/auth.ts @@ -78,7 +78,6 @@ export const signInWithApple = async (): Promise> => { const { data, error } = await supabase.auth.signInWithOAuth({ provider: 'apple', options: { - scopes: 'openid, profile email offline_access', redirectTo: `${origin}/auth/callback?redirect_to=/auth/success`, }, });