Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnsupportedCredentialType = errors.New("unsupported credential type")
)
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { IsTokenValid(token string) (bool, error) GetUserFromAuthToken(token string) (*entities.User, error) NewToken(user *entities.User) (*entities.AuthToken, error) SetCredential(userId string, credential *entities.Credential) error VerifyCredential(userId string, credential *entities.Credential) error LoginByEmail(email string, credential *entities.Credential) (*entities.AuthToken, error) GetRecoveryKey(email string) (*entities.RecoveryKey, error) SetRecoveryKey(email string) (*entities.RecoveryKey, error) SendPasswordRecoveryInstructions(email string) error }
Click to show internal directories.
Click to hide internal directories.