anurag06557
03/01/2024, 7:45 AMrp_st
03/01/2024, 8:27 AMrp_st
03/01/2024, 8:27 AManurag06557
03/01/2024, 9:24 AManurag06557
03/01/2024, 9:24 AManurag06557
03/01/2024, 9:25 AMrp_st
03/01/2024, 9:26 AManurag06557
03/02/2024, 5:49 AMimport { ThirdPartyProviderInput } from "supertokens-node/recipe/thirdpartypasswordless/types";
let providers: ThirdPartyProviderInput[] = [
{
config: {
thirdPartyId: "apple",
clients: [{
clientType: "web-and-android",
clientId: "...",
additionalConfig: {
"keyId": "...",
"privateKey": "...",
"teamId": "...",
}
}, {
clientType: "ios",
clientId: "...",
additionalConfig: {
"keyId": "...",
"privateKey": "...",
"teamId": "...",
}
}]
}
}
]
this is the backend , now from frontend if in need to call the web one then clientType will be 'web' or 'web-and-android'anurag06557
03/02/2024, 6:12 AMrp_st
03/02/2024, 7:55 AManurag06557
03/02/2024, 9:04 AManurag06557
03/02/2024, 9:39 AManurag06557
03/02/2024, 10:01 AMrp_st
03/02/2024, 12:38 PManurag06557
03/04/2024, 4:46 AMproviders: [
{
config: {
thirdPartyId: THIRD_PARTY.GOOGLE,
clients: [
{
clientId: process.env.GOOGLE_CLIENT_ID,
clientSecret: process.env.GOOGLE_CLIENT_SECRET,
clientType: CLIENT_TYPE.WEB,
},
{
clientId: process.env.IOS_GOOGLE_CLIENT_ID,
clientType: CLIENT_TYPE.IOS,
},
{
clientId: process.env.ANDROID_GOOGLE_CLIENT_ID,
clientType: CLIENT_TYPE.ANDROID,
},
],
},
},
this is my google config in backend
and
SuperTokens.init({
appInfo: {
appName: "Testing",
websiteDomain: baseURL,
apiDomain: apiBaseURL,
},
clientType: "web",
this is my config at frontend in web.
now the question is , in apple signin i am using 'web-and-android' and in google separate 'web' , but always i am getting clientType as 'web' . due to this apple is not working as client Type does not match