@growsari/auth

0.0.10 • Public • Published

Auth

This package validates a JSON Web Token using the keys provided by the IAM service.

Usage

This package uses the asynchronous invoke-lambda function. You might need to call it within an async-await function.

const validate = require('@growsari/auth');

const sampleFunction = async (tokenToVerify) => {
  return await validate(tokenToVerify);
};

If the token is valid, validate will return the token's decoded claims as a JSON object. Otherwise, it will return false.

Readme

Keywords

none

Package Sidebar

Install

npm i @growsari/auth

Weekly Downloads

86

Version

0.0.10

License

ISC

Unpacked Size

3.47 kB

Total Files

5

Last publish

Collaborators

  • gs.dwight.badua
  • leland.growsari
  • melyo
  • prasad.riktam
  • ddimaano.gs
  • madhugogineni