@passlock/node

0.9.30 • Public • Published

Passkeys, Social Login & more
for Node.js apps

Node SDK for Passkey authentication, Social Login using Apple, Google and more...
Project website »
GitHub · Demo · Documentation · Tutorial


See also

For frontend usage please see the accompanying @passlock/client package

Requirements

Node 16+

Usage

Generate a secure token in your frontend then use this API to obtain the passkey registration or authentication details:

import { Passlock } from '@passlock/node'

const passlock = new Passlock({ tenancyId, apiKey })

// token comes from your frontend
const principal = await passlock.fetchPrincipal({ token })

// get the user id
console.log(principal.user.id)

Package Sidebar

Install

npm i @passlock/node

Homepage

passlock.dev

Weekly Downloads

25

Version

0.9.30

License

MIT

Unpacked Size

51.9 kB

Total Files

26

Last publish

Collaborators

  • toby.hobson