1.1.0 • Published 1 year ago
auth-adapter v1.1.0
Everlast Brands Auth Adapter
Description
Optional package when developing new services for everlast brands. This package provides utilities for applications and users to manage identities and connects to our main Auth API.
Installation
yarn add @everlast-brands/authAdapter
# or
npm install @everlast-brands/authAdapter
Setup
import axios from "axios";
import authAdapter from "authAdapter";
export const authInit = authAdapter({
enviornmentAddress: "http://127.0.0.1",
appAPIKey: process.env.APP_API_KEY,
appID: process.env.APP_ID,
// In order to have no dependencies
// an axios instance is required
axios,
});