feat: add the tiktok integration

This commit is contained in:
Pierre Ryssen
2026-03-10 15:14:14 +01:00
parent 0dca836cf5
commit cd15c81b53
18 changed files with 701 additions and 39 deletions

View File

@@ -32,6 +32,9 @@ export const { handlers, signIn, signOut, auth } = NextAuth({
],
callbacks: {
async session({ session, token }) {
if (token?.id && session.user) {
(session.user as { id?: string }).id = token.id as string;
}
return session;
},
async jwt({ token, user }) {