@zalter/identity-js
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

Zalter Identity - Browser SDK

A browser side software developer kit meant to be used for the Zalter Identity Service offered by Zalter.

Installation

npm install @zalter/identity-js

Usage

import { Auth } from '@zalter/identity-js';

const auth = new Auth({
  projectId: '<projectId>' // replace with your own projectId
});

await auth.signInWithCode('start', {
  email: 'example@example.com' // Email of the user you want to authenticate. 
});

await auth.signInWithCode('finalize', {
  code: '<code>' // Email of the user you want to authenticate. 
});

const isAuthenticated = await auth.isAuthenticated();

const user = await auth.getCurrentUser();

// user.signMessage();

Documentation

Zalter Docs Website

Package Sidebar

Install

npm i @zalter/identity-js

Homepage

zalter.com

Weekly Downloads

243

Version

1.2.1

License

none

Unpacked Size

128 kB

Total Files

35

Last publish

Collaborators

  • zalter
  • alexandru.comanescu