In prebuilt UI , how can i provide the clientType ...
# support-questions-legacy
a
In prebuilt UI , how can i provide the clientType query param in the authorisation Url as it is not automatically considering the clientType and throwing error in the backend as I am using three configs of google namey web, android, and iOS
r
Hi. It's a part of the supertokens.init config.
a
but its not considering , i am getting error like , please provide only single config or provide any specific clientType
r
yeaa.. so youi need to pass the value in supertokens.init on the frontend
a
how to provide that , not getting this
r
supertokens.init({clientType: ".."})
a
SuperTokens.init(SuperTokensConfig); i am using this
and in supertokensCOnfig i am not getting the option to do clientType; export const SuperTokensConfig = { appInfo: { appName: "SuperTokens Demo App", apiDomain: getApiDomain(), websiteDomain: getWebsiteDomain(), }, // recipeList contains all the modules that you want to // use from SuperTokens. See the full list here: https://supertokens.com/docs/guides recipeList: [ ThirdPartyPasswordless.init({ signInUpFeature: { providers: [ // ThirdPartyPasswordless.Github.init(), ThirdPartyPasswordless.Google.init(), ThirdPartyPasswordless.Apple.init(), // ThirdPartyPasswordless.Twitter.init(), ThirdPartyPasswordless.Facebook.init() ], }, contactMethod: "EMAIL_OR_PHONE", }), Session.init(), ],
r
just add clientType into that object...
a
I have tried adding like this export const SuperTokensConfig = { appInfo: { appName: "SuperTokens Demo App", apiDomain: getApiDomain(), websiteDomain: getWebsiteDomain(), clientType:"web", }, as well as like this export const SuperTokensConfig = { clientType:"web", appInfo: { appName: "SuperTokens Demo App", apiDomain: getApiDomain(), websiteDomain: getWebsiteDomain(), }, but same erro
r
it's not in appInfo..
it's next to appInfo..
anyway.. hope you figure it out. Good luck 🙂
a
export const SuperTokensConfig = { clientType:"web", appInfo: { appName: "SuperTokens Demo App", apiDomain: getApiDomain(), websiteDomain: getWebsiteDomain(), }, like this one na
r
yea
a
yes got it ,it was making difference in "web" and 'web' thanks
9 Views