Use google cloud platform scope instead of specific scopes for each service
This commit is contained in:
parent
effb3b8e43
commit
f227906a75
@ -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("+", "-")
|
||||
|
Loading…
x
Reference in New Issue
Block a user