fix: register jwt() plugin (oauth-provider requires it; else jwt_config error)
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
* consistent across the product (no Authentik involved).
|
||||
*/
|
||||
import { betterAuth } from "better-auth";
|
||||
import { jwt } from "better-auth/plugins";
|
||||
import { oauthProvider } from "@better-auth/oauth-provider";
|
||||
import { Pool } from "pg";
|
||||
|
||||
@@ -53,6 +54,9 @@ export const auth = betterAuth({
|
||||
database: pool,
|
||||
socialProviders,
|
||||
plugins: [
|
||||
// oauth-provider looks up the jwt plugin (for JWKS-verifiable access tokens)
|
||||
// and errors if it isn't registered, so add it explicitly, before it.
|
||||
jwt(),
|
||||
// Current OAuth 2.1 provider (replaces the deprecated oidc-provider).
|
||||
// Bundles the JWT plugin, so access tokens are JWTs verifiable at /jwks —
|
||||
// exactly what the MCP server needs. DCR lets Claude self-register; the
|
||||
|
||||
Reference in New Issue
Block a user