WIP: first pass, massive refactor of model imports

This commit is contained in:
Danny Avila 2025-05-30 12:54:24 -04:00
parent c682d45fb2
commit ab5450be8b
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
53 changed files with 179 additions and 72 deletions

View file

@ -1,7 +1,9 @@
const mongoose = require('mongoose');
const { webcrypto } = require('node:crypto');
const { User } = require('@librechat/data-schemas');
const { hashBackupCode, decryptV3, decryptV2 } = require('~/server/utils/crypto');
const User = mongoose.models.User;
// Base32 alphabet for TOTP secret encoding.
const BASE32_ALPHABET = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';