@akord/akord-auth
v0.30.44
Published
Akord Auth Provider
Downloads
1,116
Keywords
Readme
akord-auth
Akord Authentication Provider
Usage
Import
import { Auth } from "@akord/akord-auth";
or
const { Auth } = require("@akord/akord-auth");
Methods
signIn(email, password)
email
(string
, required)password
(string
, required)- returns
Promise<{ wallet }>
- Promise with an Akord Wallet
const { wallet } = await new Auth().signIn("winston@gmail.com", "1984");
signUp(email, password)
email
(string
, required)password
(string
, required)- returns
Promise<{ wallet }>
- Promise with an Akord Wallet
const { wallet } = await new Auth().signUp("winston@gmail.com", "1984");
verifyAccount(email, code)
email
(string
, required)code
(string
, required)- returns
Promise<void>
await new Auth().verifyAccount("winston@gmail.com", 123456);