VOOZH about

URL: https://www.nuget.org/packages/Plugin.Firebase.Auth.Google/

⇱ NuGet Gallery | Plugin.Firebase.Auth.Google 3.1.2




👁 Image
Plugin.Firebase.Auth.Google 3.1.2

dotnet add package Plugin.Firebase.Auth.Google --version 3.1.2
 
 
NuGet\Install-Package Plugin.Firebase.Auth.Google -Version 3.1.2
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Plugin.Firebase.Auth.Google" Version="3.1.2" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Plugin.Firebase.Auth.Google" Version="3.1.2" />
 
Directory.Packages.props
<PackageReference Include="Plugin.Firebase.Auth.Google" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Plugin.Firebase.Auth.Google --version 3.1.2
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Plugin.Firebase.Auth.Google, 3.1.2"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Plugin.Firebase.Auth.Google@3.1.2
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Plugin.Firebase.Auth.Google&version=3.1.2
 
Install as a Cake Addin
#tool nuget:?package=Plugin.Firebase.Auth.Google&version=3.1.2
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Auth

You can use Firebase Authentication to allow users to sign in to your app using one or more sign-in methods, including email address and password sign-in, and federated identity providers such as Google Sign-in and Facebook Login.

Installation

Nuget

👁 NuGet

Install-Package Plugin.Firebase.Auth

Setup

#if IOS
 FirebaseAuthGoogleImplementation.Initialize();
#elif ANDROID
 FirebaseAuthGoogleImplementation.Initialize("your-google-request-id-token");
#endif
  • The googleRequestIdToken can be accessed at the Google API Console (make sure to use the Client-ID of the Web client)

iOS specifics

  • Enable keychain entitlement in Entitlements.plist:
 <dict>
 <key>keychain-access-groups</key>
 <array>
 <string>$(AppIdentifierPrefix)my.fancy.app</string>
 </array>
 </dict>
  • In case you are using Authentication via Google, add an url scheme to your apps Info.plist:
 <key>CFBundleURLTypes</key>
 <array>
 <dict>
 <key>CFBundleURLSchemes</key>
 <array>
 <string>com.googleusercontent.apps.123456-abcdef</string>
 </array>
 </dict>
 </array>

Android specifics

  • Make sure you have added the SHA-1 fingerprint matching the keystore you've used for signing the app bundle to the android project settings in the firebase console:
  • Call FirebaseAuthImplementation.HandleActivityResultAsync(requestCode, resultCode, data); from MainActivity.OnActivityResult(...)
  • If you are on version 2.0.5 or later, add the following package to your project's .csproj file to prevent build errors:
 <PackageReference Include="Xamarin.AndroidX.Browser" Version="1.6.0.2" />

For more specific instructions take a look at the official Firebase documentation

Usage

Take a look at the documentation for the AdamE.Firebase.iOS.Auth packages, because Plugin.Firebase's code is abstracted but still very similar.

Since code should be documenting itself you can also take a look at the following classes:

Release notes

  • Version 3.1.2
    • Fix NRE with Google Auth when cancelling sign in (#500)
  • Version 3.1.1
    • Using AdamE.Firebase.iOS.* minimum version 11
  • Version 3.1.0
    • Update to .net8
  • Version 3.0.0
    • Swapped Xamarin.Firebase.iOS.Auth (native SDK 8.10.0) for AdamE.Firebase.iOS.Auth (native SDK 10.24.0)
  • Version 2.0.7
    • Added AddAuthStateListener to FirebaseAuth (PR #246)
  • Version 2.0.6
    • Fix dates in android AuthTokenResultWrapper (issue #244)
  • Version 2.0.5
    • Bump up Xamarin.Firebase.Auth from 121.0.8 to 122.2.0 (issue #131)
  • Version 2.0.4
    • Separating Auth.Google into its own package (PR #210)
  • Version 2.0.3
    • Return FirebaseUser in FirebaseAuthImplementation.CreateUserAsync(email, password) method (issue #183)
  • Version 2.0.2
    • Bump up Xamarin.Google.iOS.SignIn from 5.0.2.3 to 5.0.2.4 (issue #158)
  • Version 2.0.1
    • Remove unnecessary UseMaui property from csproj files
    • Readd net6.0 tfm
Product Versions Compatible and additional computed target framework versions.
.NET net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-android34.0 net8.0-android34.0 is compatible.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-ios18.0 net8.0-ios18.0 is compatible.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.1.2 2,548 8/25/2025
3.1.1 3,891 2/10/2025
3.1.0 1,059 11/9/2024
2.0.0 1,218 10/18/2023