プロジェクト
GitHubで見る
techiediaries/fake-api-jwt-json-server
概要
A Fake API with JWT Authentication using json-server and jsonwebtoken
セキュリティ・プライバシー計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルJSONServer + 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:
関連プロジェクトを探す
読み込み中…