package
0.5.0
Repository: https://github.com/fmitra/authenticator.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
NewPGDB returns a new database for testing.
NewRedisDB returns a redis DB for testing.
Server creates an external test server with mocked responses.
SetAuthHeaders sets authentication header and client ID cookie to the client request for API testing.
ValidateErrMessage validates an API error message in the format of { error: { message: "", code: "" } }.

# Constants

No description provided by the author
OTPCodehash is a SHA512 hash of `123456`.

# Structs

DeviceRepository mocks auth.DeviceRepository.
Logger mocks a go-kit logger.
LoginHistoryRepository mocks auth.LoginHistoryRepository.
MessageRepository mocks auth.MessageRepository interface.
MessagingService mocks auth.MessagingService interface.
OTPService mocks auth.OTPService interface.
PGClient provies a test database.
Rediser mocks go-redis client.
RepositoryManager mocks auth.RepositoryManager interface.
ServerResp is a path and response for an external test server.
TokenService mocks auth.TokenService interface.
UserRepository mocks auth.UserRepository.
WebAuthnLib mocks duo-labs/webauthn third party library.
WebAuthnService mocks auth.WebAuthnService.