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,
|
exp: Math.floor(Date.now() / 1000) + 120,
|
||||||
iat: Math.floor(Date.now() / 1000),
|
iat: Math.floor(Date.now() / 1000),
|
||||||
iss: env.WORKER_GSERVICEACCOUNT,
|
iss: env.WORKER_GSERVICEACCOUNT,
|
||||||
scope:
|
scope: "https://www.googleapis.com/auth/cloud-platform",
|
||||||
"https://www.googleapis.com/auth/datastore https://www.googleapis.com/auth/devstorage.read_write",
|
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.replaceAll("+", "-")
|
.replaceAll("+", "-")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user