abacritt / angularx-social-login

Social login and authentication module for Angular 17
630 stars 387 forks source link

How Can I avoid a pop up users to log when refresh #642

Closed zahasoftware closed 1 year ago

zahasoftware commented 1 year ago

I've implemented angular-social-login like this:

<asl-google-signin-button type='standard' size='large' theme="filled_black"></asl-google-signin-button>

But when I refresh It showed a popup with user, How can I disable this functionality?

image

jpike88 commented 1 year ago

I have the same issue

jpike88 commented 1 year ago

I found it, tweak your app module to this:

{
                                id: GoogleLoginProvider.PROVIDER_ID,
                                provider: new GoogleLoginProvider(
                                    'BLAH BLAHABLAHL BLAH',
                                    {
                                        oneTapEnabled: false,
                                    }
                                ),
                            },
jpike88 commented 1 year ago

@Heatmanofurioso oneTapEnabled should be false by default, it's very confusing to newbies on this library and is quite invasive and can break SPAs

nikxco commented 1 year ago

On tap sign in is a great feature in terms of user experience… and it must be supported out of the box, the problem is that there should be a way to persist user state on the browser, maybe use cookies or local storage for maintaining/restoring the state

I’m also facing the similar issues but not sure how to solve in a clean manner… @Heatmanofurioso

Heatmanofurioso commented 1 year ago

@jpike88 I agree. Someone could propose a PR with the change, and I'll deploy it, if the community agrees

stale[bot] commented 1 year ago

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.

mikila85 commented 11 months ago

i thought its for letting the user one click to login so i removed it,... and since having trouble... thanks @jpike88

ganholete commented 7 months ago

Same problem. Even after the user is authenticated, when reloading the page, the popup appears again

mikila85 commented 7 months ago

Ok "won't fix" will someone say how to code it so it will know the session? I mean there must be a way to save the "one tapped user" that has logged in and on init just set it to let the component know.. please help