Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion packages/better-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@thunderid/eslint-plugin": "catalog:",
"@thunderid/prettier-config": "catalog:",
"@types/node": "catalog:",
"better-auth": "^1.7.2",
"better-auth": "^1.7.13",
"eslint": "catalog:",
"prettier": "catalog:",
"rimraf": "catalog:",
Expand Down
3 changes: 1 addition & 2 deletions packages/better-auth/src/__tests__/thunderid.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('thunderid', () => {
});

expect(config.providerId).toBe('thunderid');
expect(config.accountIssuer).toBe('https://thunderid.example.com');
expect(config.requireIdTokenVerification).toBe(true);
expect(config.discoveryUrl).toBe('https://thunderid.example.com/.well-known/openid-configuration');
expect(config.scopes).toEqual(['openid', 'profile', 'email']);
expect(config.clientId).toBe('thunderid-client-id');
Expand All @@ -30,7 +30,6 @@ describe('thunderid', () => {
issuer: 'https://thunderid.example.com/',
});

expect(config.accountIssuer).toBe('https://thunderid.example.com');
expect(config.discoveryUrl).toBe('https://thunderid.example.com/.well-known/openid-configuration');
});

Expand Down
4 changes: 3 additions & 1 deletion packages/better-auth/src/thunderid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ export function thunderid(options: ThunderIDOptions): GenericOAuthConfig<'thunde

return {
providerId: 'thunderid',
accountIssuer: issuer,
discoveryUrl: `${issuer}/.well-known/openid-configuration`,
// Without the discovered issuer and keys, ID tokens could not be verified, so the provider is
// not registered rather than signing users in on unverified tokens.
requireIdTokenVerification: true,
clientId: options.clientId,
clientSecret: options.clientSecret,
tokenEndpointAuth: options.tokenEndpointAuth,
Expand Down
Loading
Loading