Skip to content

Commit 2ecd3f4

Browse files
authored
fix(oidc-plugin): user info endpoint casing to match OIDC spec (#1446)
1 parent 4e08cc2 commit 2ecd3f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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
@@ -31,7 +31,7 @@ const getMetadata = (
3131
issuer,
3232
authorization_endpoint: `${baseURL}/oauth2/authorize`,
3333
token_endpoint: `${baseURL}/oauth2/token`,
34-
userInfo_endpoint: `${baseURL}/oauth2/userinfo`,
34+
userinfo_endpoint: `${baseURL}/oauth2/userinfo`,
3535
jwks_uri: `${baseURL}/jwks`,
3636
registration_endpoint: `${baseURL}/oauth2/register`,
3737
scopes_supported: ["openid", "profile", "email", "offline_access"],

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ export interface OIDCMetadata {
393393
*
394394
* @default `/oauth2/userinfo`
395395
*/
396-
userInfo_endpoint: string;
396+
userinfo_endpoint: string;
397397
/**
398398
* The URL of the jwks_uri endpoint.
399399
*

0 commit comments

Comments
 (0)