1.2.1 • Published 2 years ago
@zalter/identity-js v1.2.1
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
1.2.1
2 years ago
1.2.0
2 years ago
1.2.0-beta6
2 years ago
1.2.0-beta5
2 years ago
1.2.0-beta4
2 years ago
1.2.0-beta3
2 years ago
1.2.0-beta2
2 years ago
1.2.0-beta
2 years ago
1.1.0
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago