- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.9k
 
feat: Google Sign-In (GoogleSignInHandler) #2254
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
Conversation
- unit tests covering google sign in, anonymous upgrade and error states - updated google auth dependencies
| try { | ||
| signInWithGoogle(context, config, provider) | ||
| } catch (e: AuthException) { | ||
| // Log.d("rememberGoogleSignInHandler", "exception: $e") | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can remove this
| authorizationProvider.authorize(context, requestedScopes) | ||
| // Log.d("GoogleSignIn", "Successfully authorized scopes: ${provider.scopes}") | ||
| } catch (e: Exception) { | ||
| // Log.w("GoogleSignIn", "Failed to authorize scopes: ${provider.scopes}", e) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
| // Log.d("GoogleSignIn", "Cleared Google credential state") | ||
| } catch (e: Exception) { | ||
| // Log.w("GoogleSignIn", "Failed to clear credential state", e) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
| class MainActivity : ComponentActivity() { | ||
| companion object { | ||
| private const val USE_AUTH_EMULATOR = true | ||
| private const val USE_AUTH_EMULATOR = false | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can keep that to true by default
PENDING:
sign_in_with_google.webm