registra
This commit is contained in:
@@ -1,16 +1,30 @@
|
||||
<template>
|
||||
<q-page class="flex flex-center">
|
||||
<img alt="Quasar logo" src="~assets/quasar-logo-vertical.svg" style="width: 200px; height: 200px">
|
||||
<q-btn color="primary" label="Primary" @click="registrar" />
|
||||
</q-page>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { onMounted } from 'vue'
|
||||
import { supabaseStore } from '../stores/supabaseStore'
|
||||
//import { supabaseStore } from '../stores/supabaseStore'
|
||||
//const store = supabaseStore()
|
||||
import useSupabase from '../boot/supabase'
|
||||
const { supabase } = useSupabase()
|
||||
|
||||
const registrar = async () => {
|
||||
const { data, error } = await supabase.auth.signUp(
|
||||
{
|
||||
email: 'nedejih337@rykone.com',
|
||||
password: 'nedejih337',
|
||||
}
|
||||
)
|
||||
console.log(data, '\n', error)
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
}
|
||||
)
|
||||
|
||||
const store = supabaseStore()
|
||||
|
||||
onMounted(() => {
|
||||
console.log(store.prueba)
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user