UNPKG

@accounts/two-factor

Version:

[![npm](https://img.shields.io/npm/v/@accounts/two-factor.svg)](https://www.npmjs.com/package/@accounts/two-factor) ![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)

10 lines (8 loc) 288 B
import { type ErrorMessages } from './types'; export const errors: ErrorMessages = { userNotFound: 'User not found', codeDidNotMatch: `2FA code didn't match`, userTwoFactorNotSet: `2FA not set`, userTwoFactorAlreadySet: `2FA already set`, codeRequired: '2FA code required', };