Hey, <@498057949541826571> i am using thirdpartyem...
# support-questions-legacy
p
Hey, @rp_st i am using thirdpartyemailpassword reciepe. Now in front end i have this. But when i see in network it requests on http://xyz.tt/auth/authorisationurl?thirdPartyId=google instead it should have request on http://xyz.tt/api/auth/authorisationurl?thirdPartyId=google my api is running on http://xyz.tt/api. also i have made necessary chnages on api side for thirdparty
Copy code
const authUrl = await getAuthorisationURLWithQueryParamsAndSetState({
    authorisationURL: `morton.xyz.tt/api/auth/callback/google`,
    providerId: "google",
  });
r
hey @porcx whats the value of apiBasePath on the frontend and backend?
p
@rp_st my frontend is on morton.xyz.tt and api is son morton.zyx.tt/api
r
whats the configured apiBasePath in the appInfo object?
on the frontend and backend
p
do you mean where config.apiBasepath is '/api' and appDomain is 'morton.xyz.tt'
Copy code
SuperTokensRequest.init({
  apiBasePath: config.apiBasePath + "/auth",
  apiDomain: config.appDomain,
});

SuperTokens.init({
  appInfo: {
    apiDomain: config.appDomain,
    appName: config.title,
  },

  recipeList: [ThirdPartyEmailPassword.init(), Session.init()],
});
r
you should set the apiBasePath to
/api/auth
on frontend and backend.
in the appInfo object