Documentation ¶
Overview ¶
Package auth provides the easy function to validate the JWT, simple plug and play. Its easy function to protect your api JWT See https://jwt.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JWTAuthMiddleware ¶
func JWTAuthMiddleware(encoded bool, secret string) gin.HandlerFunc
JWTAuthMiddleware middleware function implementation
Types ¶
Click to show internal directories.
Click to hide internal directories.