Hey team! What could be the reason that after logg...
# support-questions-legacy
a
Hey team! What could be the reason that after logginin using google the redirection is made to the backend link ?
r
hey @akrem.yes you mean google redirects the user to the backend?
if so, check the url configured on google's dashboard
a
we didn't setup anything for google dashboard we are using the apps generated by you in the exmples
r
are you using custom UI or pre built?
a
pre built
r
then it should redirect to the frontend. Im not sure why it's going to the backend. There must be some customisation / manualy step you are doing in your code.
also, i don't have any info about how you are doing things, so hard for me to help.
a
dm-ed you
r
so thats expected.. you need to serve the frontend bundle on that route.
a
can you elaborate please. like you mean we need in backend a /auth/callback/google path that serves a frontend content ??
r
Yup. Basically have a route on the backend which will serve your react app on /auth/*
Or I mean however you sever your react app
That needs to be configured to serve on /auth/*
a
but our backend is not serving any frontend it's a simple fully backend api nothing to have with frontend content -- frontend is in a different service.. am not serving frontend from backend.
r
So the callback has to point to your frontend app and load that path
Anyway, the really depends on your infra setup.
So not sure how helpful I can be