https://supertokens.com/ logo
Title
n

n1ru4l

10/18/2022, 2:02 PM
Is there a way to auto-start the auth flow for a specific provider in the react-ui based on e.g. a query parameter?
r

rp

10/18/2022, 2:22 PM
hey! yes there is. Checkout the custom UI docs section for thirdparty login. You can call those functions yourself if the query param is present and redirect the user to the auth provider without any user action
n

n1ru4l

10/19/2022, 7:07 AM
Thank you 😊
Does
supertokens-auth-react
have its own
getAuthorisationURLWithQueryParamsAndSetState
function? I would like to avoid having to initialize both
supertokens-web-js
ThirdPartyEmailPassword and instead only have to initialize
supertokens-auth-react
r

rp

10/19/2022, 11:01 AM
yes it does
the same import statement, except instead of web-js, put auth-react
@nkshah2 can help here
n

n1ru4l

10/19/2022, 11:02 AM
oh wow 😄
works perfectly
thanks!
r

rp

10/19/2022, 11:02 AM
nice
n

n1ru4l

10/19/2022, 11:02 AM
I am implementing Okta login right now 😄