fix: pass OAuth scopes to DCR and extract granted_scopes from token response (#7571)
Signed-off-by: Peter Siska <63866+peschee@users.noreply.github.com> Co-authored-by: Jack Amadeo <jackamadeo@squareup.com>
This commit is contained in:
@@ -66,7 +66,7 @@ describe('session reuse scoping (fix for #7601)', () => {
|
||||
|
||||
const allSessions = [emptySessionA, emptySessionB, usedSession];
|
||||
|
||||
it('window A only reuses its own active empty session, not window B\'s', () => {
|
||||
it("window A only reuses its own active empty session, not window B's", () => {
|
||||
// Window A has emptySessionA active, Window B has emptySessionB active.
|
||||
// Under the old logic, both would grab emptySessionA (the first in the list).
|
||||
const windowAResult = findReusableSession(allSessions, 'empty-a');
|
||||
@@ -95,8 +95,7 @@ describe('session reuse scoping (fix for #7601)', () => {
|
||||
|
||||
it('demonstrates the old bug: global find would give same session to both windows', () => {
|
||||
// Old logic (before fix) - both windows get the same session.
|
||||
const oldLogicFind = (sessions: Session[]) =>
|
||||
sessions.find((s) => shouldShowNewChatTitle(s));
|
||||
const oldLogicFind = (sessions: Session[]) => sessions.find((s) => shouldShowNewChatTitle(s));
|
||||
|
||||
const windowAOld = oldLogicFind(allSessions);
|
||||
const windowBOld = oldLogicFind(allSessions);
|
||||
|
||||
@@ -7,7 +7,6 @@ import { Buffer } from 'node:buffer';
|
||||
import { status } from './api';
|
||||
import { Client, createClient, createConfig } from './api/client';
|
||||
|
||||
|
||||
export interface Logger {
|
||||
info: (...args: unknown[]) => void;
|
||||
error: (...args: unknown[]) => void;
|
||||
|
||||
Reference in New Issue
Block a user