Bug: authClient.twoFactor.verifyTotp no longer supports 'trustDevice' #770

Closed
opened 2026-03-13 08:03:37 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @Scooter1337 on GitHub (Mar 3, 2025).

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

await authClient.twoFactor.verifyTotp({ code, trustDevice });

Current vs. Expected behavior

Object literal may only specify known properties, and 'trustDevice' does not exist in type 'Prettify<{ code: string; } & { fetchOptions?: { headers?: (HeadersInit & (HeadersInit | CommonHeaders)) | undefined; redirect?: RequestRedirect | undefined; ... 32 more ...; disableValidation?: boolean | undefined; } | undefined; }>'

What version of Better Auth are you using?

1.2.1

Provide environment information

-

Which area(s) are affected? (Select all that apply)

Types

Auth config (if applicable)


Additional context

No response

Originally created by @Scooter1337 on GitHub (Mar 3, 2025). ### Is this suited for github? - [x] Yes, this is suited for github ### To Reproduce ```typescript await authClient.twoFactor.verifyTotp({ code, trustDevice }); ``` ### Current vs. Expected behavior Object literal may only specify known properties, and 'trustDevice' does not exist in type 'Prettify<{ code: string; } & { fetchOptions?: { headers?: (HeadersInit & (HeadersInit | CommonHeaders)) | undefined; redirect?: RequestRedirect | undefined; ... 32 more ...; disableValidation?: boolean | undefined; } | undefined; }>' ### What version of Better Auth are you using? 1.2.1 ### Provide environment information ```bash - ``` ### Which area(s) are affected? (Select all that apply) Types ### Auth config (if applicable) ```typescript ``` ### Additional context _No response_
GiteaMirror added the bug label 2026-03-13 08:03:37 -05:00
Author
Owner

@Bekacru commented on GitHub (Mar 3, 2025):

should already be fixed on 1.2.2-beta.3

@Bekacru commented on GitHub (Mar 3, 2025): should already be fixed on `1.2.2-beta.3`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#770