Open geofany opened 10 months ago
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 https://github.com/wavezync/vue3-google-signin/issues/58#issuecomment-2399393614, 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:
const { isReady, login } = useOneTap({ ... })
watch(isReady, (isReady) => { if (!isReady) return if (document.cookie.includes('my-cookie')) return
login() })
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 https://github.com/wavezync/vue3-google-signin/issues/58#issuecomment-2399547845, 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 ?