GitHubAuthProvider
@available(iOS 13, tvOS 13, macOS 10.15, watchOS 7, *)
@objc(FIRGitHubAuthProvider)
open class GitHubAuthProvider : NSObject
Utility class for constructing GitHub Sign In credentials.
-
A string constant identifying the GitHub identity provider.
Declaration
Swift
@objc public static let id: String
-
Creates an
AuthCredential
for a GitHub sign in.Declaration
Swift
@objc open class func credential(withToken token: String) -> AuthCredential
Parameters
token
The GitHub OAuth access token.
Return Value
An AuthCredential containing the GitHub credentials.