refactor: 💡 rename error class

This commit is contained in:
Jin 2025-03-28 01:56:06 +01:00
parent 18a417addd
commit 687d506ca5
3 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
class MFAError {
class OpenIDrror {
message: string;
constructor(message: string) {
@ -6,4 +6,4 @@ class MFAError {
}
}
export default MFAError;
export default OpenIDrror;

View File

@ -3,7 +3,7 @@ import utils from "../utils.js";
import dataEncryptionService from "./data_encryption.js";
import sql from "../sql.js";
import sqlInit from "../sql_init.js";
import OpenIDError from "../../errors/mfa_error.js";
import OpenIDError from "../../errors/open_id_error.js";
function saveUser(subjectIdentifier: string, name: string, email: string) {
if (isUserSaved()) return false;

View File

@ -1,4 +1,4 @@
import OpenIDError from "../errors/mfa_error.js";
import OpenIDError from "../errors/open_id_error.js";
import type { NextFunction, Request, Response } from "express";
import openIDEncryption from "./encryption/open_id_encryption.js";
import sqlInit from "./sql_init.js";