Documentation ¶
Index ¶
Constants ¶
View Source
const AccessTokenExpirationMinutes = 300
AccessTokenExpirationMinutes is the expiry time for the token
View Source
const TokenHeader = "x-access-token"
TokenHeader token for auth
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
Auth keeps the auth and a secret key
func (*Auth) AuthenticateUser ¶
AuthenticateUser will auth user and returns a access token with expiry
Click to show internal directories.
Click to hide internal directories.