Skip to content

Commit

Permalink
Removing unrelated white space changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamEssenmacher committed Feb 3, 2025
1 parent 7281862 commit f3f32b9
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ public static void Initialize()
var clientId = googleServiceDictionary["CLIENT_ID"].ToString();
SignIn.SharedInstance.Configuration = new Configuration(clientId);
}

public static bool OpenUrl(UIApplication app, NSUrl url, NSDictionary options)
{
return SignIn.SharedInstance.HandleUrl(url);
}

private readonly FirebaseAuth _firebaseAuth;
private static Lazy<GoogleAuth> _googleAuth;

Expand All @@ -30,7 +30,7 @@ public FirebaseAuthGoogleImplementation()
_firebaseAuth = FirebaseAuth.DefaultInstance;
_googleAuth = new Lazy<GoogleAuth>(() => new GoogleAuth());
}

public async Task<IFirebaseUser> SignInWithGoogleAsync()
{
try {
Expand All @@ -40,13 +40,13 @@ public async Task<IFirebaseUser> SignInWithGoogleAsync()
throw GetFirebaseAuthException(e);
}
}

private async Task<IFirebaseUser> SignInWithCredentialAsync(AuthCredential credential)
{
var authResult = await _firebaseAuth.SignInWithCredentialAsync(credential);
return authResult.User.ToAbstract(authResult.AdditionalUserInfo);
}

private static FirebaseAuthException GetFirebaseAuthException(NSErrorException ex)
{
AuthErrorCode errorCode;
Expand All @@ -59,7 +59,7 @@ private static FirebaseAuthException GetFirebaseAuthException(NSErrorException e
Enum.TryParse(errorCode.ToString(), out FIRAuthError authError);
return new FirebaseAuthException(authError, ex.Error.LocalizedDescription);
}

public async Task<IFirebaseUser> LinkWithGoogleAsync()
{
try {
Expand All @@ -70,19 +70,19 @@ public async Task<IFirebaseUser> LinkWithGoogleAsync()
throw GetFirebaseAuthException(e);
}
}

private async Task<IFirebaseUser> LinkWithCredentialAsync(AuthCredential credential)
{
var authResult = await _firebaseAuth.CurrentUser.LinkAsync(credential);
return authResult.User.ToAbstract(authResult.AdditionalUserInfo);
}

public Task SignOutAsync()
{
_googleAuth.Value.SignOut();
return Task.CompletedTask;
}

private static UIViewController ViewController {
get {
var rootViewController = UIApplication.SharedApplication.KeyWindow.RootViewController;
Expand Down

0 comments on commit f3f32b9

Please sign in to comment.