//
pkg.gl
Category
github.com/sheltertechsf/sheltertech-go
internal
auth
package
1.2.0
Repository:
https://github.com/sheltertechsf/sheltertech-go.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
15
Dependents
2
Files
98 SLOC
#
Functions
EnsureValidToken
EnsureValidToken is a middleware that will check the validity of our JWT.
GetUserFromRequest
Get the DB User corresponding to the HTTP request's Authorization headers.
#
Structs
CustomClaims
CustomClaims contains custom data we want from the token.