Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type CacheStore ¶
type CacheStore interface {
Token() TokenCacheStore
}
type TokenCacheStore ¶
type TokenDetails ¶
type User ¶
type User struct { BaseModel Username string Email string PasswordHash string GivenName string FamilyName string }
func (*User) SetPassword ¶
SetPassword takes in a password string, uses bcrypt to hash it and writes to the PasswordHash field
func (*User) ValidatePassword ¶
ValidatePassword takes in the password in string form and ensures it matches the hash
Click to show internal directories.
Click to hide internal directories.