Projekte
Auf GitHub ansehen
techiediaries/fake-api-jwt-json-server
Über uns
A Fake API with JWT Authentication using json-server and jsonwebtoken
Sicherheit und DatenschutzGemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
OriginalJSONServer + JWT Auth
A Fake REST API using json-server with JWT authentication.
Implemented End-points: login,register
Install
$ npm install
$ npm run start-auth
Might need to run
npm audit fix
How to login/register?
You can login/register by sending a POST request to
POST http://localhost:8000/auth/login
POST http://localhost:8000/auth/register
with the following data
{
"email": "[email protected]",
"password":"nilson"
}
You should receive an access token with the following format
{
"access_token": "<ACCESS_TOKEN>"
}
You should send this authorization with any request to the protected endpoints
Authorization: Bearer <ACCESS_TOKEN>
Check out these tutorials:
Ähnliche Projekte entdecken
Wird geladen…