Skip to content

Commit cb91d15

Browse files
committed
fix(oidc): missing content type header on openId configuration endpoint
1 parent 5f2a70e commit cb91d15

File tree

1 file changed

+1
-1
lines changed
  • packages/better-auth/src/plugins/oidc-provider

1 file changed

+1
-1
lines changed

packages/better-auth/src/plugins/oidc-provider/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export const oidcProvider = (options: OIDCOptions) => {
145145
},
146146
async (ctx) => {
147147
const metadata = getMetadata(ctx, options);
148-
return metadata;
148+
return ctx.json(metadata);
149149
},
150150
),
151151
oAuth2authorize: createAuthEndpoint(

0 commit comments

Comments
 (0)