| 1234567891011121314151617 | package modelsimport "time"// DefaultExpDuration - the default expiration time of SsoStateconst DefaultExpDuration = time.Minute * 5// SsoState - holds SSO sign-in session datatype SsoState struct {	Value      string    `json:"value"`	Expiration time.Time `json:"expiration"`}// SsoState.IsExpired - tells if an SsoState is expired or notfunc (s *SsoState) IsExpired() bool {	return time.Now().After(s.Expiration)}
 |