User Profile Create a user profile where the user can sign out

This lesson is available for PRO members or as a single course purchase. Sign-in and choose a plan below.


*Enrollment provides full access to this course (and updates) for life.

Or Signup for Unlimited PRO Access

User Profile Component

UserProfile.vue
<template>
  <div>
    Logged in as {{ user.uid }}<br>
    <button @click="auth.signOut()" class="button">Sign Out</button>
  </div>
</template>

<script>
import { auth } from '../firebase';

export default {
  data() {
    return { 
          auth 
    }
  },
  props: ['user']
}
</script>

Q&A Chat