@lodgify/identity-server-client

1.2.3 • Public • Published

Identity server client

A client for interacting with the Lodgify's identity server quickly and easily!

Install

$ npm install @lodgify/identity-server-client

Usage

import { postLogin } from '@lodgify/identity-server-client';

const websiteId = 123456;

postLogin(websiteId, {
  email: "bruce@wayneenterprises.com",
  password: "IAmBatman",
  websiteId
});

Note!

identity-server-client relies on the IDENTITY_SERVER_HOST environment variable to be set if you want to hit a different development environment (staging or integration). Without it the domain will the live environment's.

The server host should be set at the following location global.process.env.IDENTITY_SERVER_HOST.

Contributing

See contributing.

Readme

Keywords

none

Package Sidebar

Install

npm i @lodgify/identity-server-client

Weekly Downloads

2

Version

1.2.3

License

MIT

Unpacked Size

6.44 kB

Total Files

9

Last publish

Collaborators

  • lodgify-ci