Join Discord
Powered by
I need to redirect to '/hello' on successfull logi...
# support-questions-legacy
a
anu05891
06/10/2022, 12:58 PM
I need to redirect to '/hello' on successfull login
r
rp_st
06/10/2022, 1:17 PM
hey
@anu05891
rp_st
06/10/2022, 1:17 PM
can i see the config you have provided on the frontend?
a
anu05891
06/10/2022, 1:21 PM
Something like { appInfo, recipeList: [ EmailPasswordReact.init({ palette: { primary: PRIMARY_COLOR_LIGHT_MODE, textLink: PRIMARY_COLOR_LIGHT_MODE, error: ERROR_COLOR_LIGHT_MODE, }, }), SessionReact.init(), ], }
r
rp_st
06/10/2022, 1:22 PM
whats the value of appInfo?
a
anu05891
06/10/2022, 1:22 PM
export const appInfo = { // learn more about this on
https://supertokens.com/docs/passwordless/appinfo
appName: 'APP_NAME', apiDomain: API_URL, websiteDomain: WEB_APP_URL, apiBasePath: '/auth', websiteBasePath: '/auth', };
r
rp_st
06/10/2022, 1:23 PM
Have a look at this:
https://supertokens.com/docs/emailpassword/common-customizations/redirecting-post-login
a
anu05891
06/10/2022, 1:37 PM
Thanks @rp it worked
r
rp_st
06/10/2022, 1:37 PM
great
Previous
Next