Skip to content

Commit

Permalink
fix: scope normalisation
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Jul 15, 2024
1 parent 61a67e7 commit 1bc6699
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/static/js/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/static/js/bundle.js.map

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,11 @@ export const ProviderInfoForm = ({
}

const normalizedProviderConfigClients = providerConfigState.clients?.map((client) => {
const normalizedScopes = client.scope?.filter((scope) => scope && scope?.trim() !== "") ?? [];
let normalizedScopes: string[] | undefined =
client.scope?.filter((scope) => scope && scope?.trim() !== "") ?? [];
if (normalizedScopes.length === 0) {
normalizedScopes = undefined;
}
return {
clientId: client.clientId.trim(),
clientType: client.clientType?.trim() || undefined,
Expand Down

0 comments on commit 1bc6699

Please sign in to comment.