Merge branch 'canary' into 2026-01-10/docs/cleanup-broken-links

This commit is contained in:
Taesu
2026-01-10 05:33:57 +09:00
committed by GitHub

View File

@@ -52,7 +52,11 @@ export const getOAuthProviderPlugin = (ctx: AuthContext) => {
* @internal
*/
export const getJwtPlugin = (ctx: AuthContext) => {
return ctx.getPlugin("jwt") satisfies ReturnType<typeof jwt> | null;
const plugin = ctx.getPlugin("jwt") satisfies ReturnType<typeof jwt> | null;
if (!plugin) {
throw new BetterAuthError("jwt_config", "jwt plugin not found");
}
return plugin;
};
const cachedTrustedClients = new TTLCache<string, SchemaClient<Scope[]>>();