Skip to content

Commit dc40b02

Browse files
authored
Fix providers clientID key case (#190)
This PR is fixing the case of provider client id key from `clientId` to `clientID`
1 parent 0a5be10 commit dc40b02

33 files changed

+81
-76
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@openauthjs/openauth": patch
3+
---
4+
5+
Fix providers client id case from `clientId` to `clientID`

packages/openauth/src/provider/apple.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* export default issuer({
1010
* providers: {
1111
* apple: AppleProvider({
12-
* clientId: "1234567890",
12+
* clientID: "1234567890",
1313
* clientSecret: "0987654321"
1414
* })
1515
* }
@@ -24,7 +24,7 @@
2424
* export default issuer({
2525
* providers: {
2626
* apple: AppleOidcProvider({
27-
* clientId: "1234567890"
27+
* clientID: "1234567890"
2828
* })
2929
* }
3030
* })
@@ -46,7 +46,7 @@ export interface AppleOidcConfig extends OidcWrappedConfig {}
4646
* @example
4747
* ```ts
4848
* AppleProvider({
49-
* clientId: "1234567890",
49+
* clientID: "1234567890",
5050
* clientSecret: "0987654321"
5151
* })
5252
* ```
@@ -71,7 +71,7 @@ export function AppleProvider(config: AppleConfig) {
7171
* @example
7272
* ```ts
7373
* AppleOidcProvider({
74-
* clientId: "1234567890"
74+
* clientID: "1234567890"
7575
* })
7676
* ```
7777
*/

packages/openauth/src/provider/cognito.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* cognito: CognitoProvider({
1010
* domain: "your-domain.auth.us-east-1.amazoncognito.com",
1111
* region: "us-east-1",
12-
* clientId: "1234567890",
12+
* clientID: "1234567890",
1313
* clientSecret: "0987654321"
1414
* })
1515
* }
@@ -55,7 +55,7 @@ export interface CognitoConfig extends Oauth2WrappedConfig {
5555
* CognitoProvider({
5656
* domain: "your-domain.auth.us-east-1.amazoncognito.com",
5757
* region: "us-east-1",
58-
* clientId: "1234567890",
58+
* clientID: "1234567890",
5959
* clientSecret: "0987654321"
6060
* })
6161
* ```

packages/openauth/src/provider/discord.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* export default issuer({
88
* providers: {
99
* discord: DiscordProvider({
10-
* clientId: "1234567890",
10+
* clientID: "1234567890",
1111
* clientSecret: "0987654321"
1212
* })
1313
* }
@@ -28,7 +28,7 @@ export interface DiscordConfig extends Oauth2WrappedConfig {}
2828
* @example
2929
* ```ts
3030
* DiscordProvider({
31-
* clientId: "1234567890",
31+
* clientID: "1234567890",
3232
* clientSecret: "0987654321"
3333
* })
3434
* ```

packages/openauth/src/provider/facebook.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* export default issuer({
1010
* providers: {
1111
* facebook: FacebookProvider({
12-
* clientId: "1234567890",
12+
* clientID: "1234567890",
1313
* clientSecret: "0987654321"
1414
* })
1515
* }
@@ -24,7 +24,7 @@
2424
* export default issuer({
2525
* providers: {
2626
* facebook: FacebookOidcProvider({
27-
* clientId: "1234567890"
27+
* clientID: "1234567890"
2828
* })
2929
* }
3030
* })
@@ -46,7 +46,7 @@ export interface FacebookOidcConfig extends OidcWrappedConfig {}
4646
* @example
4747
* ```ts
4848
* FacebookProvider({
49-
* clientId: "1234567890",
49+
* clientID: "1234567890",
5050
* clientSecret: "0987654321"
5151
* })
5252
* ```
@@ -71,7 +71,7 @@ export function FacebookProvider(config: FacebookConfig) {
7171
* @example
7272
* ```ts
7373
* FacebookOidcProvider({
74-
* clientId: "1234567890"
74+
* clientID: "1234567890"
7575
* })
7676
* ```
7777
*/

packages/openauth/src/provider/github.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* export default issuer({
88
* providers: {
99
* github: GithubProvider({
10-
* clientId: "1234567890",
10+
* clientID: "1234567890",
1111
* clientSecret: "0987654321"
1212
* })
1313
* }
@@ -28,7 +28,7 @@ export interface GithubConfig extends Oauth2WrappedConfig {}
2828
* @example
2929
* ```ts
3030
* GithubProvider({
31-
* clientId: "1234567890",
31+
* clientID: "1234567890",
3232
* clientSecret: "0987654321"
3333
* })
3434
* ```

packages/openauth/src/provider/google.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* export default issuer({
1010
* providers: {
1111
* google: GoogleProvider({
12-
* clientId: "1234567890",
12+
* clientID: "1234567890",
1313
* clientSecret: "0987654321"
1414
* })
1515
* }
@@ -24,7 +24,7 @@
2424
* export default issuer({
2525
* providers: {
2626
* google: GoogleOidcProvider({
27-
* clientId: "1234567890"
27+
* clientID: "1234567890"
2828
* })
2929
* }
3030
* })
@@ -46,7 +46,7 @@ export interface GoogleOidcConfig extends OidcWrappedConfig {}
4646
* @example
4747
* ```ts
4848
* GoogleProvider({
49-
* clientId: "1234567890",
49+
* clientID: "1234567890",
5050
* clientSecret: "0987654321"
5151
* })
5252
* ```
@@ -71,7 +71,7 @@ export function GoogleProvider(config: GoogleConfig) {
7171
* @example
7272
* ```ts
7373
* GoogleOidcProvider({
74-
* clientId: "1234567890"
74+
* clientID: "1234567890"
7575
* })
7676
* ```
7777
*/

packages/openauth/src/provider/jumpcloud.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* export default issuer({
88
* providers: {
99
* jumpcloud: JumpCloudProvider({
10-
* clientId: "1234567890",
10+
* clientID: "1234567890",
1111
* clientSecret: "0987654321"
1212
* })
1313
* }
@@ -28,7 +28,7 @@ export interface JumpCloudConfig extends Oauth2WrappedConfig {}
2828
* @example
2929
* ```ts
3030
* JumpCloudProvider({
31-
* clientId: "1234567890",
31+
* clientID: "1234567890",
3232
* clientSecret: "0987654321"
3333
* })
3434
* ```

packages/openauth/src/provider/keycloak.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* keycloak: KeycloakProvider({
1010
* baseUrl: "https://your-keycloak-domain",
1111
* realm: "your-realm",
12-
* clientId: "1234567890",
12+
* clientID: "1234567890",
1313
* clientSecret: "0987654321"
1414
* })
1515
* }
@@ -58,7 +58,7 @@ export interface KeycloakConfig extends Oauth2WrappedConfig {
5858
* KeycloakProvider({
5959
* baseUrl: "https://your-keycloak-domain",
6060
* realm: "your-realm",
61-
* clientId: "1234567890",
61+
* clientID: "1234567890",
6262
* clientSecret: "0987654321"
6363
* })
6464
* ```

packages/openauth/src/provider/microsoft.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* providers: {
1111
* microsoft: MicrosoftProvider({
1212
* tenant: "1234567890",
13-
* clientId: "1234567890",
13+
* clientID: "1234567890",
1414
* clientSecret: "0987654321"
1515
* })
1616
* }
@@ -25,7 +25,7 @@
2525
* export default issuer({
2626
* providers: {
2727
* microsoft: MicrosoftOidcProvider({
28-
* clientId: "1234567890"
28+
* clientID: "1234567890"
2929
* })
3030
* }
3131
* })
@@ -62,7 +62,7 @@ export interface MicrosoftOidcConfig extends OidcWrappedConfig {}
6262
* ```ts
6363
* MicrosoftProvider({
6464
* tenant: "1234567890",
65-
* clientId: "1234567890",
65+
* clientID: "1234567890",
6666
* clientSecret: "0987654321"
6767
* })
6868
* ```
@@ -87,7 +87,7 @@ export function MicrosoftProvider(config: MicrosoftConfig) {
8787
* @example
8888
* ```ts
8989
* MicrosoftOidcProvider({
90-
* clientId: "1234567890"
90+
* clientID: "1234567890"
9191
* })
9292
* ```
9393
*/

0 commit comments

Comments
 (0)