jwt.go 237 B

1234567891011121314151617
  1. package request
  2. import (
  3. "github.com/golang-jwt/jwt/v4"
  4. )
  5. type CustomClaims struct {
  6. BaseClaims
  7. BufferTime int64
  8. jwt.RegisteredClaims
  9. }
  10. type BaseClaims struct {
  11. LoginID int
  12. SessionID int
  13. // FIXME: 要不要这里存UserID?
  14. }