FirebaseAuth Framework Reference

OAuthCredential

Internal 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 aprovider getter. This will help the developerdetermine whether an access token / secret pair is needed.

    Declaration

    Swift

    @objcpublicletsecret:String?
  • Undocumented

    Declaration

    Swift

    publicstaticletsupportsSecureCoding:Bool
  • Undocumented

    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.