mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-24 04:10:15 +01:00
🔧 test: Add fallback test for userinfo roles with invalid id_token
This commit is contained in:
parent
1083014464
commit
f74b9a3018
1 changed files with 0 additions and 2 deletions
|
|
@ -300,8 +300,6 @@ describe('setupOpenId', () => {
|
|||
expect(fetch).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
// --- Additional tests ---
|
||||
|
||||
it('should fallback to userinfo roles if the id_token is invalid (missing a period)', async () => {
|
||||
// Arrange – simulate an invalid id_token and ensure userinfo.roles contains the required role
|
||||
const invalidTokenSet = { ...validTokenSet, id_token: 'invalidtoken' };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue