Skip to content

Commit 94c9437

Browse files
committed
wip
1 parent 31b1664 commit 94c9437

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

packages/backend/src/api/resources/JSON.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ export interface SamlAccountJSON extends ClerkResourceJSON {
246246
last_name: string;
247247
verification: VerificationJSON | null;
248248
saml_connection: SamlAccountConnectionJSON | null;
249+
last_authenticated_at: number | null;
249250
}
250251

251252
export interface IdentificationLinkJSON extends ClerkResourceJSON {

packages/backend/src/api/resources/SamlAccount.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ export class SamlAccount {
4343
* The SAML connection of the SAML account.
4444
*/
4545
readonly samlConnection: SamlAccountConnection | null,
46-
) {}
46+
/**
47+
* The date when the SAML account was last authenticated.
48+
*/
49+
readonly lastAuthenticatedAt: number | null,
50+
) { }
4751

4852
static fromJSON(data: SamlAccountJSON): SamlAccount {
4953
return new SamlAccount(
@@ -56,6 +60,7 @@ export class SamlAccount {
5660
data.last_name,
5761
data.verification && Verification.fromJSON(data.verification),
5862
data.saml_connection && SamlAccountConnection.fromJSON(data.saml_connection),
63+
data.last_authenticated_at ? data.last_authenticated_at : null,
5964
);
6065
}
6166
}

packages/clerk-js/src/core/resources/Session.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ export class Session extends BaseResource implements SessionResource {
184184
config = {
185185
emailAddressId: factor.emailAddressId,
186186
enterpriseConnectionId: factor.enterpriseConnectionId,
187+
redirectUrl: factor.redirectUrl,
188+
actionCompleteRedirectUrl: factor.actionCompleteRedirectUrl,
187189
} as EnterpriseSSOConfig;
188190
break;
189191
default:

0 commit comments

Comments
 (0)