fix: separate scopes in service token

This commit is contained in:
Christel Westerberg
2024-09-30 11:26:52 +02:00
parent ea1a175c41
commit 1c0025a55a

View File

@@ -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,