Signup flow + switch to serverSupabaseUser in context (fixes token refresh issue)+ lib upgrades for nuxt/supabase and nuxt/trpc

This commit is contained in:
Michael Dausmann
2023-04-01 16:53:47 +11:00
parent f08f02851e
commit 5b2fe2f6c9
13 changed files with 604 additions and 407 deletions

View File

@@ -1,5 +1,7 @@
<template>
<div>
<h3>Nuxt 3 Boilerplate - AppFooter</h3>
<hr/>
<span><NuxtLink to="/terms">Terms Of Service</NuxtLink></span>
<span>&nbsp;|&nbsp;<NuxtLink to="/privacy">Privacy</NuxtLink></span>
</div>
</template>

View File

@@ -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>&nbsp;
|&nbsp;<NuxtLink to="/dashboard">Dashboard</NuxtLink>&nbsp;
|&nbsp;<NuxtLink to="/pricing">Pricing</NuxtLink>&nbsp;
|&nbsp;<NuxtLink to="/account">Account</NuxtLink>
<span v-if="!user"><NuxtLink to="/">Nuxt 3 Boilerplate</NuxtLink>&nbsp;|&nbsp;</span>
<span><NuxtLink to="/pricing">Pricing</NuxtLink></span>
<span v-if="user">&nbsp;|&nbsp;<NuxtLink to="/dashboard">Dashboard</NuxtLink></span>
<span v-if="user">&nbsp;|&nbsp;<NuxtLink to="/account">Account</NuxtLink></span>
<span v-if="!user">&nbsp;|&nbsp;<NuxtLink to="/signin">Sign In</NuxtLink></span>
<span v-if="user">&nbsp;|&nbsp;<a href="#" @click.prevent="signout()">Sign out</a></span>
<span v-if="user">&nbsp;|&nbsp;logged in as: {{ user.email }}</span>
</div>
<!-- Account Switching -->