Socket
Socket
Sign inDemoInstall

jwt-mock-server

Package Overview
Dependencies
76
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    jwt-mock-server

Start a mock jwt authentication server for local development


Version published
Weekly downloads
21
decreased by-52.27%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

A JWT mock server for local development

Run

default port 9000

npx --package github:ruiyang/jwt-mock-server start

to run in a different port 3000

PORT=3000 npx --package github:ruiyang/jwt-mock-server start

endpoints

curl --location --request GET 'localhost:9000/jwt/.well-known/jwks.json'
curl --location --request POST 'localhost:9000/jwt/token' \
--header 'Content-Type: application/json' \
--data-raw '{"username": "user1@test.com"}'

shutdown the server gracefully

curl --location --request GET 'localhost:9000/shutdown'

Keywords

FAQs

Last updated on 26 Sep 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc