@shingo/shingo-auth-api
TypeScript icon, indicating that this package has built-in type declarations

1.1.0-beta.2 • Public • Published

shingo-auth-api

Client library and grpc server for authentication

Usage

Server

  1. Clone the repository and build with npm run build
  2. Run with npm start

In the future we may have a npm bin install. At that point you can install the server with npm i -g @shingo/shingo-auth-api and run npx shingo-auth-api-server

Client

  1. Install the library as a dependency npm i --save-dev @shingo/shingo-auth-api
  2. Import the AuthClient class from the index and instantiate with the server address:
  import { AuthClient } from '@shingo/shingo-auth-api'
  const client = new AuthClient('api.shingo.org:1337')
  client.login({ email: 'blah@blah', password: 'asdf', services: 'some-service' }).then(res => {
    // do something
  })

/@shingo/shingo-auth-api/

    Package Sidebar

    Install

    npm i @shingo/shingo-auth-api

    Weekly Downloads

    7

    Version

    1.1.0-beta.2

    License

    MIT

    Unpacked Size

    139 kB

    Total Files

    50

    Last publish

    Collaborators

    • eric4bell
    • whiteabelincoln