Skip to content

Add new Auth APIs using AuthResult #703

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 5, 2023

Conversation

chkuang-g
Copy link
Contributor

@chkuang-g chkuang-g commented May 5, 2023

Description

Provide details of the change, and generalize the change in the PR title above.

Properly implement AuthResult and add the following methods which returns Task<AuthResult>

  • FirebaseAuth.SignInWithCustomTokenAsync()

  • FirebaseAuth.SignInWithCredentialAsync()

  • FirebaseAuth.SignInWithProviderAsync()

  • FirebaseAuth.SignInAndRetrieveDataWithCredentialAsync()

  • FirebaseAuth.SignInAnonymouslyAsync()

  • FirebaseAuth.SignInWithEmailAndPasswordAsync()

  • FirebaseAuth.CreateUserWithEmailAndPasswordAsync()

  • FirebaseUser.ReauthenticateAndRetrieveDataAsync()

  • FirebaseUser.ReauthenticateWithProviderAsync()

  • FirebaseUser.LinkWithCredentialAsync()

  • FirebaseUser.LinkWithProviderAsync()

  • FirebaseUser.UnlinkAsync()

  • FirebaseUser.UpdatePhoneNumberCredentialAsync()

  • Remove SignInWithCredentialInternalAsync_DEPRECATED() and rewire SignInWithCredentialInternalAsync() to the version returning Future<User> instead.


Testing

Describe how you've tested these changes.

GHA
https://github.com/firebase/firebase-unity-sdk/actions/runs/4889351215


Type of Change

Place an x the applicable box:

  • Bug fix. Add the issue # below if applicable.
  • New feature. A non-breaking change which adds functionality.
  • Other, such as a build process or documentation change.

chkuang-g added 4 commits May 4, 2023 11:42
- `PhoneAuthCredential.SmsCode`
- 'PhoneAuthProvider.VerificationCompleted(PhoneAuthCredential)`
- `PhoneAuthProvider.GetCredential()`
- `PhoneAuthProvider.VerifyPhoneNumber(PhoneAuthOptions, VerificationCompleted, VerificationFailed, CodeSent, CodeAutoRetrievalTimeOut)`
- Add documentation for `PhoneAuthProvider.SmsCode`
Properly implement `AuthResult` and add the following methods which
returns `Task<AuthResult>`
- `FirebaseAuth.SignInWithCustomTokenAsync()`
- `FirebaseAuth.SignInWithCredentialAsync()`
- `FirebaseAuth.SignInWithProviderAsync()`
- `FirebaseAuth.SignInAndRetrieveDataWithCredentialAsync()`
- `FirebaseAuth.SignInAnonymouslyAsync()`
- `FirebaseAuth.SignInWithEmailAndPasswordAsync()`
- `FirebaseAuth.CreateUserWithEmailAndPasswordAsync()`
- `FirebaseUser.ReauthenticateAndRetrieveDataAsync()`
- `FirebaseUser.ReauthenticateWithProviderAsync()`
- `FirebaseUser.LinkWithCredentialAsync()`
- `FirebaseUser.LinkWithProviderAsync()`
- `FirebaseUser.UnlinkAsync()`
- `FirebaseUser.UpdatePhoneNumberCredentialAsync()`

- Remove `SignInWithCredentialInternalAsync_DEPRECATED()` but to
  rewire it to the version returning `Future<User>` instead.
@chkuang-g chkuang-g changed the base branch from main to feature/auth-googleio-23-new-apis May 5, 2023 02:26
Base automatically changed from feature/auth-googleio-23-new-apis to main May 5, 2023 17:49
@chkuang-g chkuang-g merged commit 3d5ea59 into main May 5, 2023
@chkuang-g chkuang-g deleted the feature/auth-googleio-23-auth-result branch May 5, 2023 17:53
@firebase firebase locked and limited conversation to collaborators Jun 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants