Skip to content

Commit

Permalink
Add changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
LauraBeatris committed Feb 14, 2025
1 parent 465496a commit b9b5431
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/plenty-peas-pretend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@clerk/clerk-js': patch
'@clerk/types': patch
---

Initialize `tasks` on `Session` resource
4 changes: 3 additions & 1 deletion packages/types/src/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import type {
SessionVerificationResource,
} from './sessionVerification';
import type { SessionJSONSnapshot } from './snapshots';
import type { SessionTasks } from './tasks';
import type { TokenResource } from './token';
import type { UserResource } from './user';

Expand Down Expand Up @@ -98,11 +99,12 @@ export interface SessionResource extends ClerkResource {
* Each item represents the minutes that have passed since the last time a first or second factor were verified.
* [fistFactorAge, secondFactorAge]
*/
factorVerificationAge: [fistFactorAge: number, secondFactorAge: number] | null;
factorVerificationAge: [firstFactorAge: number, secondFactorAge: number] | null;
lastActiveToken: TokenResource | null;
lastActiveOrganizationId: string | null;
lastActiveAt: Date;
actor: ActJWTClaim | null;
tasks: SessionTasks | null;
user: UserResource | null;
publicUserData: PublicUserData;
end: () => Promise<SessionResource>;
Expand Down

0 comments on commit b9b5431

Please sign in to comment.