| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Test.TOTP.Login
Synopsis
- testLoginWithValidTotpCode :: HasCallStack => App ()
- testLoginWithInvalidTotpCode :: HasCallStack => App ()
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.