paper-dynasty-website/pages/login/index.vue
Cal Corum 2c0eeb96c3 - Implemented discord authentication
- Added script to fetch typescript definitions for the supabase database
2025-05-07 23:04:16 -05:00

23 lines
477 B
Vue

<script setup lang="ts">
const supabase = useSupabaseClient()
const email = ref('')
const signInWithDiscord = async () => {
const { data, error } = await supabase.auth.signInWithOAuth({
provider: 'discord',
options: {
redirectTo: 'http://localhost:3000/confirm'
}
})
if (error) console.log('OAuth login failed:', error)
}
</script>
<template>
<div>
<button @click="signInWithDiscord">
Login with Discord
</button>
</div>
</template>