Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RateLimitMiddleware ¶
func UserAuthMiddleware ¶
Types ¶
type PayloadJWT ¶
type PayloadJWT struct { ID primitive.ObjectID `json:"id"` // User App ID TWID string `json:"twid"` // Twitch ID Permissions string `json:"permissions"` // Permission bitmask from user's role TokenVersion string `json:"version"` // Token version to match against for JWT invalidation CreatedAt time.Time `json:"created_at"` }
Click to show internal directories.
Click to hide internal directories.