FirebaseAuth Framework Reference Stay organized with collections Save and categorize content based on your preferences.
OAuthCredential
@available(iOS13,tvOS13,macOS10.15,watchOS7,*)@objc(FIROAuthCredential)openclassOAuthCredential:AuthCredential,NSSecureCoding,@uncheckedSendableInternal implementation ofAuthCredential for generic credentials.
The ID Token associated with this credential.
Declaration
Swift
@objc(IDToken)publicletidToken:String?The access token associated with this credential.
Declaration
Swift
@objcpublicletaccessToken:String?The secret associated with this credential. This will be nil for OAuth 2.0 providers.
OAuthCredential already exposes a
providergetter. This will help the developerdetermine whether an access token / secret pair is needed.Declaration
Swift
@objcpublicletsecret:String?
Undocumented
Declaration
Swift
publicstaticletsupportsSecureCoding:BoolUndocumented
Declaration
Swift
publicfuncencode(withcoder:NSCoder)Undocumented
Declaration
Swift
publicrequiredinit?(coder:NSCoder)
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-11 UTC.