Apple
The Apple third party provider can be customized using the following config:
import supertokens from "supertokens-node";
import ThirdParty from "supertokens-node/recipe/thirdparty";
supertokens.init({
supertokens: {...},
appInfo: {
apiDomain: "...",
appName: "...",
websiteDomain: "..."
},
recipeList: [
ThirdParty.init({
signInAndUpFeature: {
providers: [
ThirdParty.Apple({
clientId: "APPLE_CLIENT_ID",
clientSecret: {
keyId: "APPLE_KEY_ID",
privateKey: "APPLE_PRIVATE_KEY",
teamId: "APPLE_TEAM_ID"
},
scope: [
"additionalScope",
]
})
]
}
})
]
});
#
ParametersclientSecret
- type:
Object
- It is a secret that contains a keyId, privateKey and teamId used for authorisation in server-side operations.
- type:
clientId
- type:
String
- It is the public identifier for the app.
- type:
scope
- type:
String[]
- It is a string array which defines your applications access to a users account, by default users email is accessed. Additional features can be found here
- type: