-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
One Tap still showing after login success #58
Comments
Hi @geofany would you provide us a stackblitz or codesandox? |
This can ve achieved with a cookie, but I don't see that option in the composable https://developers.google.com/identity/gsi/web/guides/toggle-display-with-cookies Any roadmap on include this? |
im not sure JS API supports the cookie option
Kasun Vithanage
…On Tue, Oct 8, 2024 at 3:24 PM Pablo Ausejo ***@***.***> wrote:
This can ve achieved with a cookie, but I don't see that option in the
composable
https://developers.google.com/identity/gsi/web/guides/toggle-display-with-cookies
Any roadmap on include this?
—
Reply to this email directly, view it on GitHub
<#58 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADGCQC7KAFBGB6DFHOTXCITZ2OTTTAVCNFSM6AAAAABPRZXXLKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJZGM4TGNRRGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Ok, so then it's possible to achieve the same result this way:
|
Yep sounds about right
Kasun Vithanage
…On Tue, Oct 8, 2024 at 4:39 PM Pablo Ausejo ***@***.***> wrote:
Ok, so then it's possible to achieve the same result this way:
const { isReady, login } = useOneTap({
...
})
watch(isReady, (isReady) => {
if (!isReady) return
if (document.cookie.includes('my-cookie')) return
login()
})
—
Reply to this email directly, view it on GitHub
<#58 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADGCQCZRZSMO447WJHLBPI3Z2O4M7AVCNFSM6AAAAABPRZXXLKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJZGU2DOOBUGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Describe the bug
hello i using one tap.
but after i success login.
The One Tap is still showing.
how to disabled it when user already logged in ?
The text was updated successfully, but these errors were encountered: