Documentation
¶
Index ¶
Constants ¶
View Source
const ( EventRevoke = "auth-revoke" EventError = "auth-error" )
View Source
const (
DefaultSkewMS = 10 * 1000 // 10 seconds skew for token expiry validation
)
Variables ¶
View Source
var ( ErrTokenMissing = errors.New("token value is not available") ErrTokenInvalid = errors.New("token value is invalid") )
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
mvc.Observable
// contains filtered or unexported fields
}
type RevokeRequest ¶
type RevokeRequest struct {
Token string `json:"token"`
}
type Token ¶
type Token struct {
// contains filtered or unexported fields
}
func (*Token) Delete ¶
func (t *Token) Delete() (*TokenValue, error)
func (*Token) Read ¶
func (t *Token) Read() (*TokenValue, error)
func (*Token) Valid ¶
func (t *Token) Valid(value ...*TokenValue) (*TokenValue, error)
func (*Token) Write ¶
func (t *Token) Write(value *TokenValue) (*TokenValue, error)
type TokenValue ¶
Click to show internal directories.
Click to hide internal directories.