Skip to content

Gun-Vue docs v0.21.4Docs


Gun-Vue docs v0.21.4 / User / auth

Function: auth()

auth(pair, cb?): Promise<void>

Authenticate with a SEA key pair

Parameters

pair: any

SEA key pair

cb?: Function = ...

Callback function

Returns

Promise<void>

Example

ts
import { auth, SEA } from '@gun-vue/composables'

async function login() {
   const pair = await SEA.pair()
   auth(pair)
}

Defined in

src/user/useUser.js:170

MIT