mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-22 19:30:15 +01:00
refactor(crypto): reorganize token hashing and signing functionality
This commit is contained in:
parent
6f4c8ef114
commit
494c6d2596
10 changed files with 27 additions and 66 deletions
|
|
@ -5,8 +5,7 @@ const passport = require('passport');
|
|||
const { Strategy: SamlStrategy } = require('@node-saml/passport-saml');
|
||||
const { findUser, createUser, updateUser } = require('~/models/userMethods');
|
||||
const { getStrategyFunctions } = require('~/server/services/Files/strategies');
|
||||
const { hashToken } = require('~/server/utils/crypto');
|
||||
const { logger } = require('~/config');
|
||||
const { hashToken, logger } = require('@librechat/data-schemas');
|
||||
const paths = require('~/config/paths');
|
||||
|
||||
let crypto;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue