Skip to content

Commit

Permalink
Added Scopes for youtube upload (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vignesh-codezyng authored Feb 25, 2023
1 parent 6f016b4 commit 0180675
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Sources/OpenGoogleSignInSDK/Model/GoogleSignInScope.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ public enum GoogleSignInScope: String {
case email
case openID = "openid"
case profile
case youTube = "https://www.googleapis.com/auth/youtube"
case YouTubeForceSsl = "https://www.googleapis.com/auth/youtube.force-ssl"
case YoutubeReadonly = "https://www.googleapis.com/auth/youtube.readonly"
}
2 changes: 1 addition & 1 deletion Sources/OpenGoogleSignInSDK/OpenGoogleSignInSDK.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public final class OpenGoogleSignIn: NSObject {
public static let shared: OpenGoogleSignIn = OpenGoogleSignIn()

/// API scopes requested by the app
public var scopes: Set<GoogleSignInScope> = [.email, .openID, .profile]
public var scopes: Set<GoogleSignInScope> = [.email, .openID, .profile,.youTube,.YoutubeReadonly,.YouTubeForceSsl]

/// View controller to present Google sign-in flow.
/// Needs to be set for presenting to work correctly.
Expand Down

0 comments on commit 0180675

Please sign in to comment.