feat: Implement role extraction and user group update logic in OpenID strategy

This commit is contained in:
Ruben Talstra 2025-02-22 12:18:00 +01:00
parent d3764fd9fe
commit ca3237c7be
No known key found for this signature in database
GPG key ID: 2A5A7174A60F3BEA
2 changed files with 82 additions and 48 deletions

View file

@ -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'),
}));