I have implemented @hmscore/react-native-hms-account to my react native application for login with Huawei Id.
When I sign in with an id token, I want to get mandatory the obtain your email address option. But currently, the option is there but default unselected.
I am passing authScopeList: [HMSAuthScopeListConstants.EMAIL] for scope as well.
Is it possible to get obtain your email address as mandatory default selected option?
Thank you.
signInWithIdToken = () => {
let signInData = {
accountAuthParams: HMSAuthParamConstants.DEFAULT_AUTH_REQUEST_PARAM,
authRequestOption: [
HMSAuthRequestOptionConstants.ID_TOKEN,
HMSAuthRequestOptionConstants.ACCESS_TOKEN,
],
authScopeList: [HMSAuthScopeListConstants.EMAIL],
};
HMSAccountAuthService.signIn(signInData)
.then((response) => {
this.logger('Sign In With IdToken -> ', response);
console.log(response);
})
.catch((err) => {
this.errorLogger('Sign In With IdToken -> ', err);
});
};
