Created
July 10, 2022 20:56
-
-
Save iamcodder/1db54989af11e906ce691d9e65880841 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LoginHelper(private val context: Context) : BaseLogin() { | |
private lateinit var mGoogleSignInClient: GoogleSignInClient | |
override fun init() { | |
val gso = GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) | |
.requestEmail() | |
.requestProfile() | |
.build() | |
mGoogleSignInClient = GoogleSignIn.getClient(context, gso) | |
} | |
override fun getLoginIntent(): Intent { | |
return mGoogleSignInClient.signInIntent | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment