Closed hheexx closed 1 year ago
is there any solution for this scenario ?
My temporary work around it is this
const googleLoginOptions: GoogleInitOptions = {
oneTapEnabled: localStorage.getItem('accessToken') ? false : true, // default is true
};
providers: [
{
provide: 'SocialAuthServiceConfig',
useValue: {
autoLogin: false,
providers: [
{
id: GoogleLoginProvider.PROVIDER_ID,
provider: new GoogleLoginProvider(
environment.clientId,
googleLoginOptions ),
}
],
onError: (err) => {
console.error(err);
}
} as SocialAuthServiceConfig,
},
],
This would only work if your login is based on your storage item and named accessToken
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Is there a way to prevent showing google one tap during page load ?