Skip to content

A package to make interacting with the identity server quick and easy!

License

Notifications You must be signed in to change notification settings

lodgify/identity-server-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A package to make interacting with the identity server quick and easy!

Resources

License

Stars

Watchers

Forks

Packages

No packages published