1.1.2 • Published 4 years ago

@jamliu/cognito-auth v1.1.2

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Cognito Auth Package

Auth package to abstract current get cognito token, logout, and oauth response token workflows

Features

  • Provides getCognitoToken and oauthResponse functions to be called using request supplemented function parameters
  • Provides logout function to be called using traditional request parameters

Installing

Using npm:

$ npm install @jamliu/cognito-auth.git

Docs

getCognitoToken (async function)

PARAMS { Cognito ID User Agent { Client ID } }

RESPONSE { status token }

logout

PARAMS Request

RESPONSE String

oauthResponse (async function)

PARAMS { Code Pool ID User Pool }

RESPONSE { status token }