Skip to content

Gun-Vue docs v0.21.4Docs


Gun-Vue docs v0.21.4 / User / useUser

Function: useUser()

useUser(): object

Get access to current logged in user

Returns

object

auth

auth: Function

leave

leave: Function

user

user: User

Example

ts
import { useUser } from '@gun-vue/composables'

const { user, auth, leave } = useUser()

Defined in

src/user/useUser.js:103

MIT