Use google cloud platform scope instead of specific scopes for each service

This commit is contained in:
regalijan 2023-10-19 16:51:10 -04:00
parent effb3b8e43
commit f227906a75
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -64,8 +64,7 @@ export async function GetAccessToken(env: Env): Promise<string> {
exp: Math.floor(Date.now() / 1000) + 120,
iat: Math.floor(Date.now() / 1000),
iss: env.WORKER_GSERVICEACCOUNT,
scope:
"https://www.googleapis.com/auth/datastore https://www.googleapis.com/auth/devstorage.read_write",
scope: "https://www.googleapis.com/auth/cloud-platform",
}),
)
.replaceAll("+", "-")