Authefy SDK
An Authefy software development kit for javascript. Simplifies the use of Authefy endpoints by providing set of libraries that are familiar for javascript developers. It also supports cross-runtime client service that can run on browser and Node.js server without code change.
Build
npm run build
transpiles the *.ts
from src
to build
and updates dist
files
Installation
To use with node:
$ npm install @authefy/server-client;
Then import sdk:
import * as authefy from package;
Documentation
Class: ServerClient
Works only in NodeJS runtime.
Handles functions for client's server side.
Object: User
id
<string>
externalId
<string>
username
<string>
password
<string>
groups
<string[]>
details
<Object>
isEmailVerified
<boolean>
isVerified
<boolean>
Object: UserEvent
id
<string>
user
<string>
externalId
<string>
application
<string>
dateTimeCreated
<Date>
cursor
<string>
type
<'UserCreated' | 'UserUpdated' | 'UserDeleted'>
body
<Object>