mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-04-07 00:15:23 +02:00
Add undefined fields for logo_uri and tos_uri in OAuth metadata tests
This commit is contained in:
parent
016e96849e
commit
7e0fffca25
1 changed files with 12 additions and 0 deletions
|
|
@ -1460,6 +1460,7 @@ describe('MCPOAuthHandler - Configurable OAuth Metadata', () => {
|
|||
'user-123',
|
||||
{},
|
||||
undefined,
|
||||
undefined,
|
||||
mockFindToken,
|
||||
);
|
||||
|
||||
|
|
@ -1502,6 +1503,8 @@ describe('MCPOAuthHandler - Configurable OAuth Metadata', () => {
|
|||
client_id: 'new-client-id',
|
||||
client_secret: 'new-client-secret',
|
||||
redirect_uris: ['http://localhost:3080/api/mcp/test-server/oauth/callback'],
|
||||
logo_uri: undefined,
|
||||
tos_uri: undefined,
|
||||
});
|
||||
|
||||
mockStartAuthorization.mockResolvedValueOnce({
|
||||
|
|
@ -1515,6 +1518,7 @@ describe('MCPOAuthHandler - Configurable OAuth Metadata', () => {
|
|||
'user-123',
|
||||
{},
|
||||
undefined,
|
||||
undefined,
|
||||
mockFindToken,
|
||||
);
|
||||
|
||||
|
|
@ -1544,6 +1548,8 @@ describe('MCPOAuthHandler - Configurable OAuth Metadata', () => {
|
|||
client_id: 'new-client-id',
|
||||
client_secret: 'new-client-secret',
|
||||
redirect_uris: ['http://localhost:3080/api/mcp/test-server/oauth/callback'],
|
||||
logo_uri: undefined,
|
||||
tos_uri: undefined,
|
||||
});
|
||||
|
||||
mockStartAuthorization.mockResolvedValueOnce({
|
||||
|
|
@ -1591,6 +1597,8 @@ describe('MCPOAuthHandler - Configurable OAuth Metadata', () => {
|
|||
client_id: 'new-client-id',
|
||||
client_secret: 'new-client-secret',
|
||||
redirect_uris: ['http://localhost:3080/api/mcp/test-server/oauth/callback'],
|
||||
logo_uri: undefined,
|
||||
tos_uri: undefined,
|
||||
});
|
||||
|
||||
mockStartAuthorization.mockResolvedValueOnce({
|
||||
|
|
@ -1604,6 +1612,7 @@ describe('MCPOAuthHandler - Configurable OAuth Metadata', () => {
|
|||
'user-123',
|
||||
{},
|
||||
undefined,
|
||||
undefined,
|
||||
mockFindToken,
|
||||
);
|
||||
|
||||
|
|
@ -1643,6 +1652,8 @@ describe('MCPOAuthHandler - Configurable OAuth Metadata', () => {
|
|||
client_id: 'new-client-id',
|
||||
client_secret: 'new-client-secret',
|
||||
redirect_uris: ['http://localhost:3080/api/mcp/test-server/oauth/callback'],
|
||||
logo_uri: undefined,
|
||||
tos_uri: undefined,
|
||||
});
|
||||
|
||||
mockStartAuthorization.mockResolvedValueOnce({
|
||||
|
|
@ -1656,6 +1667,7 @@ describe('MCPOAuthHandler - Configurable OAuth Metadata', () => {
|
|||
'user-123',
|
||||
{},
|
||||
undefined,
|
||||
undefined,
|
||||
mockFindToken,
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue