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