© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Importing TWO_FACTOR_ERROR_CODES – Is It Possible? - Better Auth
BA
Better Auth
•
12mo ago
•
3 replies
Aymeric
Importing TWO_FACTOR_ERROR_CODES – Is It Possible?
Hello
, is it possible to import TWO
_FACTOR
_ERROR
_CODES from the file plugins
/two
-factor
/error
-code
.ts
?
Github link
GitHub
better-auth/packages/better-auth/src/plugins/two-factor/error-code....
The most comprehensive authentication framework for TypeScript
- better
-auth
/better
-auth
Solution
Not right now
, but I just made a PR to fix this
.
https://github.com/better-auth/better-auth/pull/2102
GitHub
add(two-factor): Error codes to infer from plugins, and exported er...
Jump to solution
Similar Threads
Similar Threads
404 on /two-factor/view-backup-codes
BA
Better Auth / help
7mo ago
Invalid two factor cookie
BA
Better Auth / help
10mo ago
two factor with social
BA
Better Auth / help
12mo ago