tiktok provider broken

Hello, I have followed the tiktok provider guide on the betterauth docs but unfortunately i am running into some problems. When trying to login I get the error listed in the image below.
export const auth = betterAuth({
database: prismaAdapter(db, {
provider: "postgresql",
}),
plugins: [nextCookies()],
socialProviders: {
tiktok: {
clientKey: "123",
clientSecret: "123",
}
}
})
export const auth = betterAuth({
database: prismaAdapter(db, {
provider: "postgresql",
}),
plugins: [nextCookies()],
socialProviders: {
tiktok: {
clientKey: "123",
clientSecret: "123",
}
}
})
<button
type="button"
onClick={async () => {
await authClient.signIn.social({
provider: 'tiktok',
});
}}
>
login
</button>
<button
type="button"
onClick={async () => {
await authClient.signIn.social({
provider: 'tiktok',
});
}}
>
login
</button>
I have verified that my clientkey and secret are correct. If it is of any use, i also get this warning in console: WARN [Better Auth]: Social provider tiktok is missing clientId or clientSecret
No description
2 Replies
Ping
Ping2w ago
Hey @v28 can you open an issue on Github about this?
v28
v28OP2w ago
hi, apologies. I was using localhost which apparently isn't allowed with tiktok.

Did you find this page helpful?