Skip to content

zalter-com/zalter-identity-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published