Explorar o código

Minimize scopes used by Datastore sample.

Tim Burks %!s(int64=8) %!d(string=hai) anos
pai
achega
0003989cb1
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      Examples/Datastore/PackageManager/Sources/main.swift

+ 1 - 3
Examples/Datastore/PackageManager/Sources/main.swift

@@ -28,9 +28,7 @@ guard let tokenProvider = tokenProvider else {
   exit(-1)
   exit(-1)
 }
 }
 if tokenProvider.token == nil {
 if tokenProvider.token == nil {
-  try tokenProvider.signIn(scopes:["profile",
-                                   "https://www.googleapis.com/auth/contacts.readonly",
-                                   "https://www.googleapis.com/auth/cloud-platform"])
+  try tokenProvider.signIn(scopes:["https://www.googleapis.com/auth/datastore"]) 
   try tokenProvider.saveToken(TOKEN)
   try tokenProvider.saveToken(TOKEN)
 }
 }
 #else
 #else