Browse Source

Minimize scopes used by Datastore sample.

Tim Burks 8 years ago
parent
commit
0003989cb1
1 changed files with 1 additions and 3 deletions
  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)
 }
 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)
 }
 #else