fix: use create_totp_device/2 instead of create_totp_credential/2

The function is create_totp_device/2, not create_totp_credential/2.
This commit is contained in:
Graham McIntire 2026-03-08 12:17:55 -05:00
parent 9e236225b1
commit ae125f380c
No known key found for this signature in database

View file

@ -28,8 +28,8 @@ test_totp_secret = "JBSWY3DPEHPK3PXP"
|> Repo.update()
# Enable TOTP for the user
{:ok, _credential} =
Accounts.create_totp_credential(user, %{
{:ok, _device} =
Accounts.create_totp_device(user, %{
name: "E2E Test Authenticator",
secret: test_totp_secret
})