package
0.0.0-20221211150325-2f2c2f34bedd
Repository: https://github.com/fengleng/mars.git
Documentation: pkg.go.dev
# Functions
Client is a client jwt middleware.
FromContext extract auth info from context.
NewContext put auth info into context.
Server is a server auth middleware.
WithClaims with customer claim If you use it in Server, f needs to return a new jwt.Claims object each time to avoid concurrent write problems If you use it in Client, f only needs to return a single object to provide performance.
WithSigningMethod with signing method option.
WithTokenHeader withe customer tokenHeader for client side.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
Option is jwt option.