Signup flow + switch to serverSupabaseUser in context (fixes token refresh issue)+ lib upgrades for nuxt/supabase and nuxt/trpc
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<h3>Nuxt 3 Boilerplate - AppFooter</h3>
|
||||
<hr/>
|
||||
<span><NuxtLink to="/terms">Terms Of Service</NuxtLink></span>
|
||||
<span> | <NuxtLink to="/privacy">Privacy</NuxtLink></span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -23,15 +23,15 @@
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<h3>Nuxt 3 Boilerplate - AppHeader</h3>
|
||||
<!-- logged in & sign out -->
|
||||
<div v-if="user">logged in as: {{ user.email }}: <button @click="signout()">Sign Out</button></div>
|
||||
<div v-if="!user">Not Logged in</div>
|
||||
<h3>Nuxt 3 Boilerplate - To the Moon!</h3>
|
||||
<div>
|
||||
<NuxtLink to="/">Boilerplate</NuxtLink>
|
||||
| <NuxtLink to="/dashboard">Dashboard</NuxtLink>
|
||||
| <NuxtLink to="/pricing">Pricing</NuxtLink>
|
||||
| <NuxtLink to="/account">Account</NuxtLink>
|
||||
<span v-if="!user"><NuxtLink to="/">Nuxt 3 Boilerplate</NuxtLink> | </span>
|
||||
<span><NuxtLink to="/pricing">Pricing</NuxtLink></span>
|
||||
<span v-if="user"> | <NuxtLink to="/dashboard">Dashboard</NuxtLink></span>
|
||||
<span v-if="user"> | <NuxtLink to="/account">Account</NuxtLink></span>
|
||||
<span v-if="!user"> | <NuxtLink to="/signin">Sign In</NuxtLink></span>
|
||||
<span v-if="user"> | <a href="#" @click.prevent="signout()">Sign out</a></span>
|
||||
<span v-if="user"> | logged in as: {{ user.email }}</span>
|
||||
</div>
|
||||
|
||||
<!-- Account Switching -->
|
||||
|
||||
Reference in New Issue
Block a user