added tons of features

This commit is contained in:
2025-02-05 08:01:14 +02:00
parent 4ae0d8c545
commit 8138da6b1d
195 changed files with 12619 additions and 415 deletions

View File

@@ -0,0 +1,16 @@
'use server'
import {AuthError} from 'next-auth'
import {signIn} from '@/auth'
export async function googleAuthenticate() {
try {
await signIn('google')
} catch (error) {
if (error instanceof AuthError) {
return 'google log in failed'
}
throw error
}
}