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
5 changes: 5 additions & 0 deletions .changeset/puny-suns-hug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/backend': patch
---

Updating type of Verification.status
4 changes: 2 additions & 2 deletions packages/backend/src/api/resources/JSON.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { SignUpStatus } from '@clerk/types';
import type { SignUpStatus, VerificationStatus } from '@clerk/types';

import type {
ActorTokenStatus,
Expand Down Expand Up @@ -588,7 +588,7 @@ export interface UserJSON extends ClerkResourceJSON {
}

export interface VerificationJSON extends ClerkResourceJSON {
status: string;
status: VerificationStatus;
strategy: string;
attempts: number | null;
expire_at: number | null;
Expand Down
4 changes: 3 additions & 1 deletion packages/backend/src/api/resources/Verification.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import type { VerificationStatus } from '@clerk/types';

import type { OrganizationDomainVerificationJSON, VerificationJSON } from './JSON';

/**
Expand All @@ -16,7 +18,7 @@ export class Verification {
* <li>`expired`: The verification has expired.</li>
* </ul>
*/
readonly status: string,
readonly status: VerificationStatus,
/**
* The strategy pertaining to the parent sign-up or sign-in attempt.
*/
Expand Down
Loading