https://github.com/jimyag/token
https://github.com/jimyag/token
go jwt jwt-go paseto
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jimyag/token
- Owner: jimyag
- License: gpl-3.0
- Created: 2022-03-09T13:16:36.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-09T14:04:13.000Z (about 4 years ago)
- Last Synced: 2024-06-20T02:08:17.719Z (almost 2 years ago)
- Topics: go, jwt, jwt-go, paseto
- Language: Go
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# token
token 是一个封装常用基于 token 验证的工具,包含了JWT和PASETO两种实现,如果要实现自己的token,可以参考
[github](https://github.com/jimyag/token/blob/main/my_loacl_maker.go) 中的实现。
关于JWT的缺点以及PASETO的优势可以查看这篇[文章](https://jimyag.cn/posts/d5376d72/#more)
# 参考
[o1egl/paseto: Platform-Agnostic Security Tokens implementation in GO (Golang) (github.com)](https://github.com/o1egl/paseto)
[dgrijalva/jwt-go: ARCHIVE - Golang implementation of JSON Web Tokens (JWT). This project is now maintained at: (github.com)](https://github.com/dgrijalva/jwt-go)