ilbarbarossa
09/28/2023, 1:43 PMrp_st
09/28/2023, 1:57 PMakiraa1424
09/28/2023, 2:33 PMsupertokens-auth-react
version again please.ilbarbarossa
09/28/2023, 2:40 PM0.35.4
.
I set the prop into the simple config.ts
file, without using .tsx for creating the React Component.
I was just adding another example into CHANGELOG.md without deleting nothing else ^^
Here is my personal code snippet:
ts
...
ThirdPartyReact.init({
signInAndUpFeature: {
providers: [Github.init(), Google.init(), Apple.init(),
{
id: "twitch",
name: "Twitch",// Will display "Continue with Twitch",
logo: React.createElement(
"svg",
{xmlns:"http://www.w3.org/2000/svg", width:"16", height:"16", fill:"#6441a4", className:"bi bi-twitch", viewBox:"0 0 16 16"},
createElement("path", {d:"M3.857 0 1 2.857v10.286h3.429V16l2.857-2.857H9.57L14.714 8V0H3.857zm9.714 7.429-2.285 2.285H9l-2 2v-2H4.429V1.143h9.142v6.286z"}),
createElement("path", {d:"M11.857 3.143h-1.143V6.57h1.143V3.143zm-3.143 0H7.571V6.57h1.143V3.143z"})
)
}],
},
}),
...
rp_st
09/28/2023, 2:48 PMakiraa1424
09/28/2023, 2:50 PMilbarbarossa
09/28/2023, 2:51 PMts
...
ThirdPartyReact.init({
signInAndUpFeature: {
providers: [Github.init(), Google.init(), Apple.init(),
{
id: "twitch",
name: "Twitch",// Will display "Continue with Twitch",
logo: <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="#6441a4" class="bi bi-twitch" viewBox="0 0 16 16">
<path d="M3.857 0 1 2.857v10.286h3.429V16l2.857-2.857H9.57L14.714 8V0H3.857zm9.714 7.429-2.285 2.285H9l-2 2v-2H4.429V1.143h9.142v6.286z"/>
<path d="M11.857 3.143h-1.143V6.57h1.143V3.143zm-3.143 0H7.571V6.57h1.143V3.143z"/>
</svg>
}],
},
}),
...
akiraa1424
09/28/2023, 2:51 PMilbarbarossa
09/28/2023, 2:52 PMakiraa1424
09/28/2023, 2:54 PMilbarbarossa
09/28/2023, 2:56 PMfix-example-logo-prop
i created.
Thank you again ^^akiraa1424
09/28/2023, 2:58 PM