This commit is contained in:
17
app/components/auth/OAuthProvider.vue
Normal file
17
app/components/auth/OAuthProvider.vue
Normal file
@@ -0,0 +1,17 @@
|
||||
<template>
|
||||
<UButton
|
||||
color="neutral"
|
||||
size="xl"
|
||||
class="flex cursor-pointer items-center justify-center gap-3 overflow-hidden"
|
||||
@click="login(provider.name)"
|
||||
>
|
||||
Continue with {{ provider.displayName }}
|
||||
</UButton>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import type { AuthProviderInfo } from 'pocketbase';
|
||||
|
||||
const { login } = useAuth();
|
||||
const { provider } = defineProps<{ provider: AuthProviderInfo }>();
|
||||
</script>
|
||||
Reference in New Issue
Block a user