1.3.4 • Published 7 months ago
@faable/auth-sdk v1.3.4
Programmatically perform FaableAuth administrative tasks though our REST API.
⚠️ Use this library in server side only. Otherwise administrative credentials may be exposed.
Install
npm install @faable/auth-sdkConfig
import { FaableAuthApi } from "@faable/auth-sdk";
import { createClientCredentials } from "@faable/sdk-base";
const auth = createClientCredentials();
const api = FaableAuthApi.create({
auth,
team: "<faable_team_id>",
});Usage
Get user:
const user = await api.getUser("<user_id>");Update user:
const updated_user = await api.updateUser("<user_id>", {
phone: "+34XXXXXXXXX",
});List users:
// Returns first page of latest 30 users
const users = await api.listUsers().first();// Query users with email=demo@example.com
const users = await api.listUsers({ email: "demo@example.com" }).first();1.2.0
1 year ago
1.3.4
7 months ago
1.3.3
7 months ago
1.3.2
9 months ago
1.3.1
9 months ago
1.1.3
1 year ago
1.3.0
9 months ago
1.1.1
1 year ago
1.1.0
1 year ago
1.1.2
1 year ago
1.0.19
1 year ago
1.0.18
1 year ago
1.0.17
1 year ago
1.0.16
1 year ago
1.0.15
2 years ago
1.0.14
2 years ago
1.0.13
2 years ago
1.0.12
2 years ago
1.0.11
2 years ago
1.0.10
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago