1.1.2 • Published 8 months ago
@faable/auth-sdk v1.1.2
Programmatically perform FaableAuth administrative tasks though our REST API.
⚠️ Use server side only. Otherwise administrative credentials may be exposed in client side.
Install
npm install @faable/auth-sdk
Config
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.1.1
9 months ago
1.1.0
9 months ago
1.1.2
8 months ago
1.0.19
9 months ago
1.0.18
9 months ago
1.0.17
9 months ago
1.0.16
9 months ago
1.0.15
1 year ago
1.0.14
1 year ago
1.0.13
1 year ago
1.0.12
1 year ago
1.0.11
1 year ago
1.0.10
1 year ago
1.0.9
1 year ago
1.0.8
1 year ago
1.0.7
1 year ago
1.0.6
1 year ago
1.0.5
1 year ago
1.0.4
1 year ago
1.0.3
1 year ago
1.0.2
1 year ago