mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 10:20:15 +01:00
✨ feat: Implement role extraction and user group update logic in OpenID strategy
This commit is contained in:
parent
d3764fd9fe
commit
ca3237c7be
2 changed files with 82 additions and 48 deletions
|
|
@ -19,6 +19,9 @@ jest.mock('~/models/userMethods', () => ({
|
|||
createUser: jest.fn(),
|
||||
updateUser: jest.fn(),
|
||||
}));
|
||||
jest.mock('~/models/groupMethods', () => ({
|
||||
findGroup: jest.fn().mockResolvedValue([]),
|
||||
}));
|
||||
jest.mock('~/server/utils/crypto', () => ({
|
||||
hashToken: jest.fn().mockResolvedValue('hashed-token'),
|
||||
}));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue