refactor: add hotel scope to service token fetch & enable hotel API

This commit is contained in:
Chuma McPhoy
2024-08-19 09:38:06 +02:00
parent 2407f40b75
commit aa38e82698
4 changed files with 21 additions and 2548 deletions

View File

@@ -16,6 +16,7 @@ export async function fetchServiceToken(): Promise<ServiceTokenResponse> {
grant_type: "client_credentials",
client_id: env.CURITY_CLIENT_ID_SERVICE,
client_secret: env.CURITY_CLIENT_SECRET_SERVICE,
scope: ["hotel"].join(","),
}),
next: {
revalidate: SERVICE_TOKEN_REVALIDATE_SECONDS,