Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClaimerInterface

type ClaimerInterface interface {
	ToClaims() *Claims
}

    ClaimerInterface claimer interface

    type Claims

    type Claims struct {
    	Provider                         string         `json:"provider,omitempty"`
    	UserID                           string         `json:"userid,omitempty"`
    	LastLoginAt                      *time.Time     `json:"last_login,omitempty"`
    	LastActiveAt                     *time.Time     `json:"last_active,omitempty"`
    	LongestDistractionSinceLastLogin *time.Duration `json:"distraction_time,omitempty"`
    	jwt.StandardClaims
    }

      Claims auth claims

      func (*Claims) ToClaims

      func (claims *Claims) ToClaims() *Claims

        ToClaims implement ClaimerInterface

        Source Files