1.0.4 • Published 1 year ago

@growsari/auth v1.0.4

Weekly downloads
12
License
ISC
Repository
-
Last release
1 year ago

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.

1.0.4

1 year ago

1.0.2

1 year ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.3

1 year ago

0.0.10

5 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago