mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-22 22:32:01 -05:00
Merge branch 'canary' into 2026-01-10/docs/cleanup-broken-links
This commit is contained in:
@@ -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[]>>();
|
||||
|
||||
Reference in New Issue
Block a user