1.5.3 • Published 2 years ago

@growthpal/bifrost v1.5.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Project Name

A connector package to connect multiple growthpal services with heimdall (In house Auth Service)

Installation

npm install @growthpal/bifrost
yarn add @growthpal/bifrost
pnpm add @growthpal/bifrost

Prerequisites

  • Growthpal approved service
  • Growthpal auth domain

Usage

TokenValidator

CommonJS

import { TokenValidator } from '@growthpal/bifrost';

const tokenValidator =  new TokenValidator(token, domain)

tokenValidator.decodeAccessToken()

ES Modules

const { TokenValidator } = require('@growthpal/bifrost');

const tokenValidator =  new TokenValidator(token, domain)

tokenValidator.decodeAccessToken()

Bifrost

ES Modules

import { Bifrost } from '@growthpal/bifrost';
const bifrostService = new Bifrost(token, domain)
const userData = await bifrostService.getUserById(userId);

CommonJS

const { Bifrost } = require('@growthpal/bifrost');
const bifrostService = new Bifrost(token, domain)
const userData = await bifrostService.getUserById(userId);

License

See the LICENSE.md file for details.

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.10

2 years ago

1.1.10

2 years ago

1.1.0

2 years ago

1.0.2

2 years ago

1.0.0

2 years ago