Replies: 4 comments 10 replies
-
Unfortunately I tried before and could not get a TikTok client set up, they never gave me access. So I can only guess. We are asserting the config, and looks like you are missing the https://github.com/nextauthjs/next-auth/blob/main/packages/core/src/lib/utils/assert.ts/#L114 Since this is not a built-in provider, it's not a bug per se, so I'll move this to discussions. If you have the time, it would be awesome to have TikTok as a built-in provider! |
Beta Was this translation helpful? Give feedback.
-
Hi @balazsorban44 - thanks for taking a look I'll have a look at the token.url and get it added and test again. I found the provider here at auth.js when you say it is not built in - where is the official list Many thanks |
Beta Was this translation helpful? Give feedback.
-
Any progress here? |
Beta Was this translation helpful? Give feedback.
-
tiktok provider is broken rn for v5, see #11057, |
Beta Was this translation helpful? Give feedback.
-
Provider type
Tiktok
Environment
System:
OS: Windows 10 10.0.19045
CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
Memory: 21.91 GB / 31.89 GB
Binaries:
Node: 20.11.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.17.3 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 10.2.4 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: 120.0.6099.225
Edge: Chromium (120.0.2210.144)
Internet Explorer: 11.0.19041.3636
npmPackages:
@auth/core: ^0.21.0 => 0.21.0
@auth/mongodb-adapter: ^2.0.13 => 2.0.13
@auth/sveltekit: ^0.7.0 => 0.7.0
Reproduction URL
https://github.com/JohnRSim/authIssue
Describe the issue
I'm getting the following auth error:
looking at the provider the issuer is not available but it does expose the token as a function - it looks valid and so am unsure why it is being flagged:
[auth][error] InvalidEndpoints: Provider "tiktok" is missing both issuer and token endpoint config. At least one of them is required. .Read more at https://errors.authjs.dev#invalidendpoints
at assertConfig (file:///C:/work/hivar.be/hivar/node_modules/@auth/core/lib/utils/assert.js:70:24)
at Module.Auth (file:///C:/work/hivar.be/hivar/node_modules/@auth/core/index.js:70:29)
at async getSession (C:/work/hivar.be/hivar/node_modules/@auth/sveltekit/index.js:215:22)
at async authorization (C:/work/hivar.be/hivar/src/hooks.server.js:48:18)
Error: There was a problem with the server configuration. Check the server logs for more information.
at getSession (C:\work\hivar.be\hivar\node_modules@auth\sveltekit\index.js:216:11)
at async authorization (C:\work\hivar.be\hivar\src\hooks.server.js:52:18)
at async Module.respond (C:\work\hivar.be\hivar\node_modules@sveltejs\kit\src\runtime\server\respond.js:296:20)
at async file:///C:/work/hivar.be/hivar/node_modules/@sveltejs/kit/src/exports/vite/dev/index.js:502:22
How to reproduce
Setup Sveltekit add the TikTok provider to the server.hooks and run sveltekit
Error displayed in console
Expected behavior
Error should not be displayed as I can see the token function is there and issuer is not required only token or issuer is required.
Beta Was this translation helpful? Give feedback.
All reactions