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

https://github.com/jimyag/token


https://github.com/jimyag/token

go jwt jwt-go paseto

Last synced: 11 months ago
JSON representation

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)