integration-0.1.0
Safe HaskellNone
LanguageGHC2021

Test.TOTP.Login

Synopsis

Documentation

testLoginWithValidTotpCode :: HasCallStack => App () Source #

Login with a totp_code field succeeds: the mock parses the field and ignores it.

testLoginWithInvalidTotpCode :: HasCallStack => App () Source #

Login with a malformed totp_code value (not a valid SecondFactorCode format) returns 400 — parsing is real even though enforcement is not.