@growthpal/bifrost
TypeScript icon, indicating that this package has built-in type declarations

1.5.3 • Public • Published

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.

Package Sidebar

Install

npm i @growthpal/bifrost

Weekly Downloads

0

Version

1.5.3

License

MIT

Unpacked Size

65.3 kB

Total Files

57

Last publish

Collaborators

  • agnishc