yacc000
09/16/2023, 4:01 PM{
config: {
thirdPartyId: "twitter",
name: "Twitter",
clients: [{
clientId: twitterClientId,
clientSecret: twitterClientSecret,
scope: ["users.read"]
}],
authorizationEndpoint: "https://twitter.com/i/oauth2/authorize",
tokenEndpoint: "https://api.twitter.com/2/oauth2/token",
UserInfoEndpoint: "https://api.twitter.com/2/users",
}
}
I'm using core5 and the follow version of the npm packages:
frontend:
"supertokens-auth-react": "0.31.0",
"supertokens-web-js": "0.5.0",
backend:
"supertokens-node": "^13.6.0",rp_st
09/16/2023, 4:05 PMrp_st
09/16/2023, 4:05 PMyacc000
09/16/2023, 4:43 PM{
"message": "The third party provider twitter seems to be missing from the backend configs."
}
yacc000
09/16/2023, 4:45 PM{
id: "twitter",
name: "Twitter",
buttonComponent: (
<button data-supertokens="button providerButton">
<div data-supertokens="providerButtonLeft">
<div data-supertokens="providerButtonLogo">
<div data-supertokens="providerButtonLogoCenter">
<svg
xmlns="http://www.w3.org/2000/svg"
height="1em"
viewBox="0 0 50 50"
width="25px"
>
<path d="M 11 4 C 7.134 4 4 7.134 4 11 L 4 39 C 4 42.866 7.134 46 11 46 L 39 46 C 42.866 46 46 42.866 46 39 L 46 11 C 46 7.134 42.866 4 39 4 L 11 4 z M 13.085938 13 L 21.023438 13 L 26.660156 21.009766 L 33.5 13 L 36 13 L 27.789062 22.613281 L 37.914062 37 L 29.978516 37 L 23.4375 27.707031 L 15.5 37 L 13 37 L 22.308594 26.103516 L 13.085938 13 z M 16.914062 15 L 31.021484 35 L 34.085938 35 L 19.978516 15 L 16.914062 15 z"/>
</svg>
</div>
</div>
</div>
<div data-supertokens="providerButtonText">
Continue with Twitter
</div>
</button>
),
},
rp_st
09/16/2023, 4:45 PMrp_st
09/16/2023, 4:46 PMyacc000
09/16/2023, 4:46 PMconst superTokensConfig = {
supertokens: {
connectionURI,
apiKey,
},
appInfo: {
appName: "SuperTokens Auth App",
apiDomain: process.env.API_ENDPOINT,
websiteDomain: process.env.WEB_ENDPOINT,
apiBasePath: "/auth",
websiteBasePath: "/auth",
},
// 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({
providers: [
ThirdPartyPasswordless.Google({
clientId: googleClientId,
clientSecret: googleClientSecret,
}),
ThirdPartyPasswordless.Discord({
clientId: discordClientId,
clientSecret: discordClientSecret,
}),
ThirdPartyPasswordless.Apple(appleConfig),
{
config: {
thirdPartyId: "twitter",
name: "Twitter",
clients: [{
clientId: twitterClientId,
clientSecret: twitterClientSecret,
scope: ["users.read"]
}],
authorizationEndpoint: "https://twitter.com/i/oauth2/authorize",
tokenEndpoint: "https://api.twitter.com/2/oauth2/token",
UserInfoEndpoint: "https://api.twitter.com/2/users",
}
}
],
contactMethod: "EMAIL",
flowType: "USER_INPUT_CODE_AND_MAGIC_LINK",
}),
Session.init(),
Dashboard.init({
apiKey,
}),
UserMetadata.init(),
],
};
rp_st
09/16/2023, 4:47 PMyacc000
09/16/2023, 4:47 PMrp_st
09/16/2023, 4:47 PMrp_st
09/16/2023, 4:47 PMyacc000
09/16/2023, 4:47 PMrp_st
09/16/2023, 4:48 PMrp_st
09/16/2023, 4:48 PMyacc000
09/16/2023, 4:48 PMyacc000
09/16/2023, 4:55 PMyacc000
09/16/2023, 4:59 PMrp_st
09/16/2023, 4:59 PMrp_st
09/16/2023, 5:00 PMyacc000
09/16/2023, 5:09 PMyacc000
09/16/2023, 5:11 PMyacc000
09/16/2023, 5:11 PM{
"error": "invalid_request",
"error_description": "Value passed for the redirect uri did not match the uri of the authorization code."
}
rp_st
09/16/2023, 5:12 PMyacc000
09/16/2023, 5:13 PMrp_st
09/16/2023, 5:14 PMyacc000
09/16/2023, 5:15 PMrp_st
09/16/2023, 5:15 PMyacc000
09/16/2023, 5:17 PMyacc000
09/16/2023, 5:17 PMyacc000
09/16/2023, 5:31 PMyacc000
09/16/2023, 5:31 PMrp_st
09/16/2023, 5:32 PMyacc000
09/16/2023, 5:42 PMrp_st
09/16/2023, 5:42 PMrp_st
09/16/2023, 5:43 PMrp_st
09/16/2023, 5:43 PMyacc000
09/16/2023, 5:43 PMyacc000
09/16/2023, 5:44 PMyacc000
09/16/2023, 5:44 PMsullof
09/16/2023, 5:54 PMyacc000
09/19/2023, 11:59 AMyacc000
09/19/2023, 12:01 PMyacc000
09/19/2023, 12:01 PMrp_st
09/19/2023, 1:12 PMrp_st
09/19/2023, 1:13 PMyacc000
09/19/2023, 6:35 PMyacc000
09/20/2023, 5:38 AMrp_st
09/20/2023, 5:41 AMsimon7000
09/20/2023, 11:33 AMsattvikc
09/20/2023, 12:33 PMsattvikc
09/21/2023, 5:27 AMsattvikc
09/21/2023, 5:27 AMyacc000
09/21/2023, 7:20 AMrp_st
09/21/2023, 7:20 AMrp_st
09/21/2023, 7:20 AM