Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yogyy/fastify-knex
Fastify auth JWT + Cookie
https://github.com/yogyy/fastify-knex
cookie fastify jwt knex
Last synced: 19 days ago
JSON representation
Fastify auth JWT + Cookie
- Host: GitHub
- URL: https://github.com/yogyy/fastify-knex
- Owner: yogyy
- Created: 2024-03-24T21:46:51.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-10-08T07:30:33.000Z (4 months ago)
- Last Synced: 2024-11-09T22:40:46.398Z (3 months ago)
- Topics: cookie, fastify, jwt, knex
- Language: JavaScript
- Homepage:
- Size: 101 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fastify JWT + Cookie 🍪
## Description
This is a simple Fastify application for user authentication and management.
## Routes
### Authentication
`POST /api/auth/signup`
`POST /api/auth/signin`
`DELETE /api/auth/signout`
`POST /api/auth/refresh`
### User
`GET /api/users/me`
`PATCH /api/users/edit`
### Usage
To use this application, follow these steps:
1. Clone the repository.
2. Install dependencies using npm install.
3. Start the server using npm start.
4. Use any API testing tool (such as Postman or cURL) to make requests to the defined endpoints.## Technologies Used
- Fastify
- Node.js
- npm## License
[MIT Lisence](http://jsumners.mit-license.org/)
Feel free to customize this template according to your specific project requirements and preferences. You can add more sections, such as installation instructions, deployment guides, or API documentation details if needed.