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
hi i am having issues with using google oauth for login - I am using react native sdk - it all works when on expo go , but when i installed it to testfight it stops working - and when trying to login with google - in get invalid sucess param should be one of - localhost .... etc . here is my sign in code -
letredirectUri=makeRedirectUri({preferLocalhost: true});console.log("Redirect URI:",redirectUri);consturl=awaitaccount.createOAuth2Token("google",redirectUri,redirectUri,["profile","email","https://www.googleapis.com/auth/youtube","https://www.googleapis.com/auth/youtube.force-ssl","https://www.googleapis.com/auth/youtube.upload","https://www.googleapis.com/auth/youtubepartner",]);console.log("URL:",url);if(!url){thrownewError("Failed to create OAuth2 session");}constresult=awaitopenAuthSessionAsync(url.href,redirectUri);console.log("Auth session result:",result);if(result.type==="success"){if("url"inresult){constresultUrl=newURL(result.url);constsecret=resultUrl.searchParams.get("secret");constuserId=resultUrl.searchParams.get("userId");if(!secret||!userId)return;awaitaccount.createSession(userId,secret);constuser=awaitaccount.get().catch((e)=>{console.warn(e);returnnull;});console.log("user:",user);
see the screen shot for google cloud credentials
Image
The text was updated successfully, but these errors were encountered:
@schoolofai, thanks for creating this issue! 🙏🏼 Could you please share exactly what the redirectUri is when running via TestFlight? It's likely the hostname in the URL hasn't been registered in your Appwrite project yet.
hi i am having issues with using google oauth for login - I am using react native sdk - it all works when on expo go , but when i installed it to testfight it stops working - and when trying to login with google - in get invalid sucess param should be one of - localhost .... etc . here is my sign in code -
see the screen shot for google cloud credentials
Image
The text was updated successfully, but these errors were encountered: