Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthHandler ¶
func AuthHandler(handler AuthHandlerInterface) http.Handler
AuthHandler you'll want to chain this in if you want to make auth mandatory for the endpoint
func AuthMiddleware ¶
AuthMiddleware if auth should be optional and you want to do your own thing whenever the user is not logged in, use this
Types ¶
type AuthHandlerInterface ¶
type UserClaims ¶
type UserClaims struct { jwt.StandardClaims ID uint64 }
Click to show internal directories.
Click to hide internal directories.