chore: update @better-auth/sso and better-auth to version 1.5.0-beta.16; rename session_temp table to session and adjust related constraints; add new SQL migration for session table; implement getTrustedProviders function for dynamic provider retrieval

This commit is contained in:
Mauricio Siu
2026-02-23 01:58:59 -06:00
parent 9d09e51cf7
commit 74461c860e
9 changed files with 8368 additions and 68 deletions
+9
View File
@@ -135,3 +135,12 @@ export const getTrustedOrigins = async () => {
return Array.from(new Set(trustedOrigins));
};
export const getTrustedProviders = async () => {
try {
const providers = await db.query.ssoProvider.findMany();
return providers.map((provider) => provider.providerId);
} catch (error) {
return [];
}
};