Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 1.02 KB

README.md

File metadata and controls

42 lines (25 loc) · 1.02 KB

How to add JWT authorization with Cognito User Pool to a serverless API

An example serverless app created with SST.

Getting Started

Read the tutorial

Install the example.

$ npx create-sst@latest --template=examples/api-auth-jwt-cognito-user-pool
# Or with Yarn
$ yarn create sst --template=examples/api-auth-jwt-cognito-user-pool
# Or with PNPM
$ pnpm create sst --template=examples/api-auth-jwt-cognito-user-pool

Commands

npm run dev

Starts the Live Lambda Development environment.

npm run build

Build your app and synthesize your stacks.

npm run deploy [stack]

Deploy all your stacks to AWS. Or optionally deploy, a specific stack.

npm run remove [stack]

Remove all your stacks and all of their resources from AWS. Or optionally removes, a specific stack.

Documentation

Learn more about the SST.