Skip to content

Commit 47605fd

Browse files
committed
Fix JSON stringification
1 parent ff80958 commit 47605fd

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/stac-auth-proxy/index.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,12 @@ export class StacAuthProxyLambdaRuntime extends Construct {
3838
// swagger-ui config
3939
OPENAPI_SPEC_ENDPOINT: "/api",
4040
SWAGGER_UI_ENDPOINT: "/api.html",
41-
SWAGGER_UI_INIT_OAUTH: props.stacApiClientId && JSON.stringify({
42-
clientId: props.stacApiClientId,
43-
usePkceWithAuthorizationCodeGrant: true,
44-
}),
41+
SWAGGER_UI_INIT_OAUTH:
42+
props.stacApiClientId &&
43+
cdk.Stack.of(this).toJsonString({
44+
clientId: props.stacApiClientId,
45+
usePkceWithAuthorizationCodeGrant: true,
46+
}),
4547

4648
// customized settings
4749
...props.apiEnv,

0 commit comments

Comments
 (0)