package
Version:
v0.0.0-...-e6b7f3d
Opens a new window with list of versions in this module.
Published: Apr 25, 2020
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
UserRole = "User"
AdminRole = "Admin"
)
type Claims struct {
UID int `json:"uid"`
Role string `json:"role"`
jwt.StandardClaims
}
Claims contains the necessary information for user identification
New claims used as JWT payload
Source Files
¶
Click to show internal directories.
Click to hide internal directories.