Skip to content

Commit 7013f9e

Browse files
committed
fix: change the tenant id parameter name from tenantId to tenant_id
1 parent 728f59b commit 7013f9e

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

src/AuthenticationClient.ts

+3-7
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,7 @@ import {
3838
OauthParams,
3939
OidcParams,
4040
} from "./utils/types";
41-
import {
42-
SignInOptionsDto,
43-
SignUpOptionsDto,
44-
SignUpProfileDto,
45-
} from "./models";
41+
import { SignInOptionsDto, SignUpOptionsDto, SignUpProfileDto } from "./models";
4642
// ==== AUTO GENERATED AUTHENTICATION IMPORTS BEGIN ====
4743
import type { AuthorizedResourcePaginatedRespDto } from "./models/AuthorizedResourcePaginatedRespDto";
4844
import type { BindByAccountIdInputApi } from "./models/BindByAccountIdInputApi";
@@ -693,8 +689,8 @@ export class AuthenticationClient {
693689
state,
694690
nonce,
695691
};
696-
if(options?.tenantId) {
697-
params.tenantId = options?.tenantId
692+
if (options?.tenantId) {
693+
params.tenant_id = options?.tenantId;
698694
}
699695
if (options?.forced) {
700696
params.prompt = "login";

src/AuthenticationClientInterface.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export interface AuthURLParams {
1313
nonce: string;
1414
scope: string;
1515
prompt?: string;
16-
tenantId?: string;
16+
tenant_id?: string;
1717
}
1818

1919
export interface OIDCTokenResponse {
@@ -32,15 +32,15 @@ export interface NativeTokenParams extends Record<string, string> {
3232
}
3333

3434
export interface CodeToTokenParams {
35-
grant_type: 'authorization_code';
35+
grant_type: "authorization_code";
3636
client_id: string;
3737
client_secret: string;
3838
code: string;
3939
redirect_uri: string;
4040
}
4141

4242
export interface RefreshTokenParams {
43-
grant_type: 'refresh_token';
43+
grant_type: "refresh_token";
4444
client_id: string;
4545
client_secret: string;
4646
refresh_token: string;
@@ -68,7 +68,7 @@ export interface UserInfo extends Record<string, any> {
6868
given_name: string;
6969
family_name: string;
7070
birthdate: string;
71-
gender: 'M' | 'F' | 'U';
71+
gender: "M" | "F" | "U";
7272
picture: string;
7373
updated_at: string;
7474
zoneinfo: string;
@@ -114,7 +114,7 @@ export interface IDToken extends Record<string, any> {
114114
given_name: string;
115115
family_name: string;
116116
birthdate: string;
117-
gender: 'M' | 'F' | 'U';
117+
gender: "M" | "F" | "U";
118118
picture: string;
119119
updated_at: string;
120120
zoneinfo: string;

0 commit comments

Comments
 (0)