1.0.6 • Published 2 years ago

@tgam/tgam-cognito v1.0.6

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

Welcome to @tgam-cognito

Description

This package is used for custom AWS cognito implementation within the front end project.

How To Use It

Primerly, your application would need to pass in the configurations to help the package to determin how would the url of request parameters should look like.

Within your project, you will have to generate an object, and pass it into generateParams, serializeUrl, or generateCallbackQuery.

Example:

const getConfig = () => {
  return {
    clientId: <client_id_from_project_env>,
    responseType: <response_type_from_project_env>,
    scope: <scope_from_project_env>
    base_url: <base_url_from_project_env>,
    redirect_uri: <redirect_uri_from_project_env>
  }
}

generateParams(getConfig(), <route_query>, <rememberMe | optional>)
1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago