The Google 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.Google({ clientSecret: "TODO: GOOGLE_CLIENT_SECRET", clientId: "TODO: GOOGLE_CLIENT_ID", scope: [ "additionalFeatureURL", ], authorisationRedirect: { params: { additionalParam: "additionalValue", } } }) ] } }) ]});
#
ParametersclientSecret
- type:
String
- It is a secret used only 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 personal info and email is accessed. Additional features can be found here
- type:
authorisationRedirect
params
- type:
object
- Add additional params to authorisationRedirect.
- type: