Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use google cloud platform scope instead of specific scopes for each s…
…ervice
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent effb3b8 commit f227906
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions functions/gcloud.ts
Expand Up @@ -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("+", "-")
Expand Down

0 comments on commit f227906

Please sign in to comment.