diff --git a/server/tokenManager.ts b/server/tokenManager.ts index e60bb02e5..4007896d6 100644 --- a/server/tokenManager.ts +++ b/server/tokenManager.ts @@ -18,7 +18,7 @@ export async function fetchServiceToken( grant_type: "client_credentials", client_id: env.CURITY_CLIENT_ID_SERVICE, client_secret: env.CURITY_CLIENT_SECRET_SERVICE, - scope: scopes.join(","), + scope: scopes.join(" "), }), next: { revalidate: SERVICE_TOKEN_REVALIDATE_SECONDS,