Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.