feat: google auth without schema change

This commit is contained in:
Doug Andrade
2023-06-13 01:53:12 -04:00
committed by Mythie
parent 3377e29c72
commit 6253c42ca1
5 changed files with 84 additions and 12 deletions

View File

@ -11,5 +11,8 @@ declare namespace NodeJS {
NEXT_PRIVATE_STRIPE_WEBHOOK_SECRET: string;
NEXT_PUBLIC_SUBSCRIPTIONS_ENABLED: string;
NEXT_PRIVATE_GOOGLE_CLIENT_ID: string;
NEXT_PRIVATE_GOOGLE_CLIENT_SECRET: string;
}
}

View File

@ -61,8 +61,8 @@ export const SignInForm = ({ className }: SignInFormProps) => {
const onSignInWithGoogleClick = async () => {
try {
// await signIn('google', { callbackUrl: '/dashboard' });
throw new Error('Not implemented');
await signIn('google', { callbackUrl: '/dashboard' });
// throw new Error('Not implemented');
} catch (err) {
toast({
title: 'An unknown error occurred',