¶ Hosting page
Update Time: 2025-02-18 09:00:47
It takes only 1 minute if app uses UI provided by us, then call the following method where you want to authenticate user:
// this is the activity context
AuthFlow.start(this);
This is how it looks like:

Then, we can get authentication result using the following code:
@Override
protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == AuthActivity.RC_LOGIN && resultCode == AuthActivity.OK && data != null) {
//login success,do next task
}
}
If authentication success, we can get user info by:
UserInfo userInfo = Authing.getCurrentUser();