Skip to content

Commit 3a87a9e

Browse files
committed
fix: always send scopes array to allow clearing all scopes
1 parent 80d20ac commit 3a87a9e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/routes/(console)/project-[region]-[project]/settings/updateOAuth2Server.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
await sdk.forProject($project.region, $project.$id).project.updateOAuth2Server({
101101
enabled,
102102
authorizationUrl,
103-
scopes: scopes.length ? scopes : undefined,
103+
scopes,
104104
accessTokenDuration: accessTokenDuration ?? undefined,
105105
refreshTokenDuration: refreshTokenDuration ?? undefined,
106106
publicAccessTokenDuration: publicAccessTokenDuration ?? undefined,

0 commit comments

Comments
 (0)