fix: /authorize endpoint crashes when list of scopes is empty (#1575)

This commit is contained in:
Alessandro (Ale) Segala
2026-07-08 17:48:32 -07:00
committed by GitHub
parent 6734585712
commit b2711ced99
7 changed files with 78 additions and 15 deletions
+4 -1
View File
@@ -132,7 +132,10 @@
</p>
</Card.Header>
<Card.Content data-testid="scopes">
<ScopeList scopes={deviceInfo!.scope} scopeInfo={deviceInfo!.scopeInfo} />
<ScopeList
scopes={deviceInfo!.scope || []}
scopeInfo={deviceInfo!.scopeInfo || []}
/>
</Card.Content>
</Card.Root>
</div>
+4 -1
View File
@@ -181,7 +181,10 @@
</p>
</Card.Header>
<Card.Content>
<ScopeList scopes={interactionSession.scopes} scopeInfo={interactionSession.scopeInfo} />
<ScopeList
scopes={(interactionSession.scopes || [])}
scopeInfo={interactionSession.scopeInfo ?? []}
/>
</Card.Content>
</Card.Root>
</div>