Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
Username string
Password string
// Token is the 2FA token
Token string
// RefreshToken is used to refresh the token when
// it expires
RefreshToken string
}
Auth represents user authentication
func (*Auth) TokenExpired ¶
TokenExpired returns true if the token is malformed or is expired, true otherwise
Click to show internal directories.
Click to hide internal directories.