Advertisement
Learning000001

Untitled

Oct 2nd, 2024
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. public void Login(Credential _credential, Action<bool, string> _callback)
  2. {
  3. auth.SignInWithCredentialAsync(_credential).ContinueWithOnMainThread(_result =>
  4. {
  5. if (_result.Exception != null)
  6. {
  7. _callback?.Invoke(false, "Failed to login: " + _result.Exception.Message);
  8. }
  9. else
  10. {
  11. firebaseUser = _result.Result;
  12. _callback?.Invoke(true, string.Empty);
  13. }
  14. });
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement