Skip to content

Helps us to develop locally with seeded data and keep the flow of auth0.

License

Notifications You must be signed in to change notification settings

hirsch88/auth0-mock-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auth0-mock-server

This server helps you to simulate auth0 server locally. So, you are able to use the /tokeninfo endpoint to verify your token.

Getting Started

Prerequisites

Installing

  • fork this repo
  • clone your fork
  • npm install to install all dependencies

Running the app

After you have installed all dependencies you can now run the app. Run npm start to start a local server. The port will be displayed to you as http://0.0.0.0:3333 (or if you prefer IPv6, if you're using express server, then it's http://[::1]:3333/).

API Documentation

GET /token/:username

Returns a token with the given user(username). This token can the be used by your application.

POST /tokeninfo

Returns the data of the token like the username.

Body

{
    "id_token": "your-token-kjasdf6ashasl..."
}

Related Projects

License

MIT


Made with ♥ by Gery Hirschfeld (@GeryHirschfeld1)

About

Helps us to develop locally with seeded data and keep the flow of auth0.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published