fix: add feature flag for service token scopes
This commit is contained in:
@@ -70,7 +70,12 @@ async function fetchServiceToken(scopes: string[]) {
|
||||
}
|
||||
|
||||
export async function getServiceToken() {
|
||||
const scopes = ["profile", "hotel", "booking"]
|
||||
let scopes: string[] = []
|
||||
if (env.HIDE_FOR_NEXT_RELEASE) {
|
||||
scopes = ["profile"]
|
||||
} else {
|
||||
scopes = ["profile", "hotel", "booking"]
|
||||
}
|
||||
const tag = generateServiceTokenTag(scopes)
|
||||
const getCachedJwt = unstable_cache(
|
||||
async (scopes) => {
|
||||
|
||||
Reference in New Issue
Block a user