fix: remove the @unique from the prisma schema
This commit is contained in:
@@ -43,6 +43,10 @@ export function getTikTokAuthUrl(state: string, codeChallenge: string): string {
|
||||
state,
|
||||
code_challenge: codeChallenge,
|
||||
code_challenge_method: "S256",
|
||||
// "select_account" seul est ignoré par TikTok si une session est active.
|
||||
// On passe les deux pour forcer l'affichage du sélecteur de compte à chaque fois.
|
||||
prompt: "select_account",
|
||||
force_login: "true",
|
||||
});
|
||||
return `${TIKTOK_AUTH_URL}?${params.toString()}`;
|
||||
}
|
||||
@@ -142,9 +146,4 @@ export async function fetchUserStats(accessToken: string, openId: string): Promi
|
||||
displayName: user.display_name ?? "",
|
||||
avatarUrl: user.avatar_url ?? "",
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user