Auth State

Auth state was heavily inspired by @vueuse/firebaseopen in new window

Exposes

return {
  isAuthenticated,
  user
}

Usage

Not much to say here...

<script setup>
import { useAuthState } from 'firebase-composables'

const { isAuthenticated, user } = useAuthState()
</script>

<template>
  <pre>{{ isAuthenticated }}</pre>
  <pre>{{ user }}</pre>
</template>
Last Updated: 11/5/2021, 12:43:56 AM
Contributors: Luke Diebold