You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.
You wont get google profile infomation but you will get an auth token that validates on the backend. From this the backend request can get firstName, lastName, email, profileImage ect. I got tipped off when I saw a site work with 3rd party cookies disabled using redirectUri which adds this information via queryParams so it should be possible using uxMode="redirect" as well.
const[token,setToken]=useState<string>()useEffect(()=>{consthandleAuthMessage=({ data })=>{try{constresponseObject=JSON.parse(data)if(responseObject?.method==='fireIdpEvent'){setToken(responseObject?.params?.authResult?.id_token)}}catch(error){return}}window.addEventListener('message',handleAuthMessage)return()=>{window.removeEventListener('message',handleAuthMessage)}},[])
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If you disable third-party cookies, then the login fails with this error:
Apparently many people have this setting by default and don't even know it.
The only solution seems to be a server-side authentication flow. Any work-arounds ?
google/google-api-javascript-client#260
The text was updated successfully, but these errors were encountered: