Licence
MIT
Version
0.30.44
Deps
4
Size
31 kB
Vulns
0
Weekly
0
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
example
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
example
const { wallet } = await new Auth().signUp("winston@gmail.com", "1984");
verifyAccount(email, code)
email(string, required)code(string, required)- returns
Promise<void>
example
await new Auth().verifyAccount("winston@gmail.com", 123456);