Created
July 10, 2022 20:39
-
-
Save iamcodder/8f1ba43c6c8409aa8ea487b02107041b 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() { | |
override fun init() { | |
AGConnectInstance.initialize(context) | |
} | |
override fun getLoginIntent(): Intent { | |
val authParams: AccountAuthParams = | |
AccountAuthParamsHelper(AccountAuthParams.DEFAULT_AUTH_REQUEST_PARAM) | |
.setProfile() | |
.setEmail() | |
.setAuthorizationCode().createParams() | |
val service: AccountAuthService = | |
AccountAuthManager.getService(context, authParams) | |
return service.signInIntent | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment