I am using this in config config: { thir...
# support-questions-legacy
a
I am using this in config config: { thirdPartyId: 'google', clients: [ { clientId: process.env.GOOGLE_CLIENT_ID, clientSecret: process.env.GOOGLE_CLIENT_SECRET, clientType: 'web' }, { clientId: process.env.IOS_GOOGLE_CLIENT_ID, clientType:'ios' }, { clientId: process.env.ANDROID_GOOGLE_CLIENT_ID, clientType:'android' } ], }, but getting this error Error: please provide exactly one client config or pass clientType or tenantId
r
hey @ankitgupta7898 on the frontend, you need to provide the clientType in the supertokens.init (for web). And for mobile requests, you need to add the clientType in the request object
a
did not get actually where to add the clientType in request object. If added will it automatically perform the action or need to handle it in the backend too?
r
it will pick the client based on the client type
a
clientType needs to be added in headers? or query param or directly to the request object
r
see our api spec please.
it's also in our docs
search for it
a
didnt actually got that , can I get the reference to the same , please.