@nrfcloud/create-token

1.1.1 • Public • Published

Create Token Endpoint

npm version Build Status Test Coverage
Greenkeeper badge semantic-release Commitizen friendly
DeepScan Grade Known Vulnerabilities Maintainability

API endpoint which creates an identity token to be used for authenticating the user against the API.

⚠️ This endpoint should only be used for testing environments

Tests

The tests are integration tests and use CloudFormation to set up the required resources. See

Set these environment variables:

AWS_ACCESS_KEY_ID=...
AWS_SECRET_ACCESS_KEY=...

Make sure that this user has the necessary permissions:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": "cloudformation:*",
            "Resource": "arn:aws:cloudformation:*:*:stack/test-*"
        },
        {
            "Effect": "Allow",
            "Action": "cognito-idp:*",
            "Resource": "*"
        }
    ]
}

Package Sidebar

Install

npm i @nrfcloud/create-token

Weekly Downloads

8

Version

1.1.1

License

BSD-3-Clause

Last publish

Collaborators

  • nate-sherrett
  • toha-nordic
  • akolosov-nordic
  • melyea
  • gfleming-nordic
  • guckin
  • mdickensnordic
  • apkostka
  • semcc
  • patrick.barnes
  • markkulehto
  • colehafner
  • jayteemo
  • lpthomas
  • nrfcloud-ci
  • johnconley