Skip to content
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/backend-core/src/api/resources/JSON.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ export interface SignUpJSON extends ClerkResourceJSON {
has_password: boolean;
name_full: string | null;
created_session_id: string | null;
created_user_id: string | null;
abandon_at: number | null;
}

Expand Down
1 change: 1 addition & 0 deletions packages/backend-core/src/api/resources/Props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export interface SignUpProps {
externalAccount: any;
hasPassword: boolean;
createdSessionId: string | null;
createdUserId: string | null;
abandonAt: number | null;
}

Expand Down
1 change: 1 addition & 0 deletions packages/clerk-js/src/core/clerk.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ describe('Clerk singleton', () => {
identifier: '',
user_data: null,
created_session_id: null,
created_user_id: null,
} as any as SignInJSON),
signUp: new SignUp(null),
}),
Expand Down
2 changes: 2 additions & 0 deletions packages/clerk-js/src/core/resources/SignUp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export class SignUp extends BaseResource implements SignUpResource {
hasPassword = false;
unsafeMetadata: Record<string, unknown> = {};
createdSessionId: string | null = null;
createdUserId: string | null = null;
abandonAt: number | null = null;

constructor(data: SignUpJSON | null = null) {
Expand Down Expand Up @@ -207,6 +208,7 @@ export class SignUp extends BaseResource implements SignUpResource {
this.hasPassword = data.has_password;
this.unsafeMetadata = data.unsafe_metadata;
this.createdSessionId = data.created_session_id;
this.createdUserId = data.created_user_id;
this.abandonAt = data.abandon_at;
this.web3wallet = data.web3_wallet;
}
Expand Down
3 changes: 2 additions & 1 deletion packages/types/src/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import { SignUpField, SignUpIdentificationField, SignUpStatus } from './signUp';
import { OAuthStrategy } from './strategies';
import { BoxShadow, Color, EmUnit, FontFamily, FontWeight, HexColor } from './theme';
import { UserSettingsJSON } from './userSettings';
import { VerificationStatus } from './verification';
import { CamelToSnake } from './utils';
import { VerificationStatus } from './verification';

export interface ClerkResourceJSON {
// TODO: Shall we make this optional?
Expand Down Expand Up @@ -86,6 +86,7 @@ export interface SignUpJSON extends ClerkResourceJSON {
has_password: boolean;
unsafe_metadata: Record<string, unknown>;
created_session_id: string | null;
created_user_id: string | null;
abandon_at: number | null;
verifications: SignUpVerificationsJSON | null;
}
Expand Down
3 changes: 2 additions & 1 deletion packages/types/src/signUp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import {
TicketStrategy,
Web3Strategy,
} from './strategies';
import type { SnakeToCamel } from './utils';
import { CreateMagicLinkFlowReturn, StartMagicLinkFlowParams, VerificationResource } from './verification';
import { AuthenticateWithWeb3Params, GenerateSignature } from './web3Wallet';
import type { SnakeToCamel } from './utils';

export interface SignUpResource extends ClerkResource {
status: SignUpStatus | null;
Expand All @@ -45,6 +45,7 @@ export interface SignUpResource extends ClerkResource {
hasPassword: boolean;
unsafeMetadata: Record<string, unknown>;
createdSessionId: string | null;
createdUserId: string | null;
abandonAt: number | null;

create: (params: SignUpCreateParams) => Promise<SignUpResource>;
Expand Down