Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/orewaee/go-auth
Implementation of auth based on access and refresh JWT tokens in Golang
https://github.com/orewaee/go-auth
access-token auth golang jwt refresh-token
Last synced: about 2 months ago
JSON representation
Implementation of auth based on access and refresh JWT tokens in Golang
- Host: GitHub
- URL: https://github.com/orewaee/go-auth
- Owner: orewaee
- License: mit
- Created: 2024-03-25T18:44:20.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-03-29T13:39:04.000Z (9 months ago)
- Last Synced: 2024-03-29T16:32:13.430Z (9 months ago)
- Topics: access-token, auth, golang, jwt, refresh-token
- Language: Go
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Attention
This app was written for educational purposes only and may contain errors.
Ideas and development methods have also been applied to explore them.
The work logic and goals of the project are subject to change during its existence.## About
The application is an authorization based on access and refresh [JWT](https://github.com/golang-jwt/jwt) tokens.
It requires an email confirmation of the action to create a user.
All data is stored in [MongoDB](https://github.com/mongodb/mongo). [Fiber](https://github.com/gofiber/fiber) is chosen as the web framework.## Pull Requests or Commits
You are encouraged to use the following prefixes for Pull Requests or Commits:
> 🔥 feat, 🩹 fix, 📚 docs, 🎨 style, ♻️ refactor, 🚀 perf, 🚨 test, 🔨 chore
## Routes
#### Public
- `GET /ping`
- `POST /signup`
- `POST /activate/:secret`
- `POST /signin`
- `POST /refresh`#### Protected
- `GET /user`