Socket
Book a DemoInstallSign in
Socket

@authefy/node-client

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@authefy/node-client

Authefy NodeJS SDK

latest
Source
npmnpm
Version
0.1.3
Version published
Maintainers
2
Created
Source

Authefy SDK

An Authefy Web Client runs only in Node.js server. It simplifies the use of Authefy endpoints by providing set of libraries that are familiar for javascript developers.

  import Client from '@authefy/node-client';

  const authefyNodeClient =  new Client({
      appAccessKey: process.env.AUTHEFY_APP_ACCESS_KEY
  });

Installation

To use with node:

$ npm install @authefy/node-client

Features

  • Register user to Authefy
  • Update user with user id
  • Delete user with user id
  • Get user information with user id
  • Get all application's user information
  • Get all user events
  • Listen to user events
  • Login using bitclout, password & refreshToken
  • Authorize Bearer token
  • Revoke refresh token

Docs & Community

  • Documentation - WIP

Entities

Object: User

  {
    id: string;
    externalId?: string;
    username: string;
    groups: string[];
    isEmailVerified: boolean;
    isVerified: boolean;
    details: Record<string, any>;
  }

Object: UserEvent

  {
    id: string
    user: string;
    externalId?: string;
    application: string;
    type: UserCreated | UserUpdated | UserDeleted;
    body?: Record<string, any>;
    dateTimeCreated: string;
    cursor: string;
  }

FAQs

Package last updated on 02 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts