https://github.com/codeforgeek/node-refresh-token
Implement Refresh Token Authentication Using Node and JWT
https://github.com/codeforgeek/node-refresh-token
Last synced: 12 months ago
JSON representation
Implement Refresh Token Authentication Using Node and JWT
- Host: GitHub
- URL: https://github.com/codeforgeek/node-refresh-token
- Owner: codeforgeek
- Created: 2018-03-24T19:03:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-24T19:08:42.000Z (over 8 years ago)
- Last Synced: 2025-05-13T07:41:26.734Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://codeforgeek.com/refresh-token-jwt-nodejs-authentication/
- Size: 1.95 KB
- Stars: 93
- Watchers: 10
- Forks: 41
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-refresh-token
Implement Refresh Token Authentication Using Node and JWT
Clone the repository and switch to the project directory.
Install dependencies using ```npm install``` command then run the code using following command.
```node app.js```
Give following API calls to check the working.
```/login```
post data =>
```
{
"email": "shahid@codeforgeek.com",
"name": "Shahid"
}
```
```/secure```
in headers provide,
```x-access-header=access token from the previous API```