Is there a way to auto-start the auth flow for a s...
# support-questions-legacy
n
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
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
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
yes it does
the same import statement, except instead of web-js, put auth-react
@nkshah2 can help here
n
oh wow 😄
works perfectly
thanks!
r
nice
n
I am implementing Okta login right now 😄