Socket
Socket
Sign inDemoInstall

@zalter/identity-js

Package Overview
Dependencies
32
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @zalter/identity-js

A browser API client for Zalter Identity service


Version published
Weekly downloads
220
increased by8.37%
Maintainers
2
Install size
3.44 MB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 07 Sep 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc