package
0.0.0-20240510080100-1c003c80f533
Repository: https://github.com/nartvt/go-core.git
Documentation: pkg.go.dev
# Functions
Client is a client jwt middleware.
Client is a client jwt middleware.
FromContext extract auth info from context.
No description provided by the author
No description provided by the author
No description provided by the author
NewContext put auth info into context.
Server is a server auth middleware.
No description provided by the author
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.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WithSigningMethod with signing method option.
WithTokenHeader with 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