diff --git a/lib/build/recipe/session/types.d.ts b/lib/build/recipe/session/types.d.ts index c42ac1d8c..6118f47b9 100644 --- a/lib/build/recipe/session/types.d.ts +++ b/lib/build/recipe/session/types.d.ts @@ -188,13 +188,13 @@ export declare type RecipeInterface = { getSessionInformation(input: { sessionHandle: string; userContext: any }): Promise; revokeAllSessionsForUser(input: { userId: string; - tenantId: string; + tenantId?: string; revokeAcrossAllTenants?: boolean; userContext: any; }): Promise; getAllSessionHandlesForUser(input: { userId: string; - tenantId: string; + tenantId?: string; fetchAcrossAllTenants?: boolean; userContext: any; }): Promise; diff --git a/lib/ts/recipe/session/recipeImplementation.ts b/lib/ts/recipe/session/recipeImplementation.ts index 10e0f6f7c..54e06f3ae 100644 --- a/lib/ts/recipe/session/recipeImplementation.ts +++ b/lib/ts/recipe/session/recipeImplementation.ts @@ -411,7 +411,7 @@ export default function getRecipeInterface( revokeAcrossAllTenants, }: { userId: string; - tenantId: string; + tenantId?: string; revokeAcrossAllTenants?: boolean; }) { return SessionFunctions.revokeAllSessionsForUser(helpers, userId, tenantId, revokeAcrossAllTenants); @@ -423,7 +423,7 @@ export default function getRecipeInterface( fetchAcrossAllTenants, }: { userId: string; - tenantId: string; + tenantId?: string; fetchAcrossAllTenants?: boolean; }): Promise { return SessionFunctions.getAllSessionHandlesForUser(helpers, userId, tenantId, fetchAcrossAllTenants); diff --git a/lib/ts/recipe/session/types.ts b/lib/ts/recipe/session/types.ts index 4c00eeac5..5059bc62a 100644 --- a/lib/ts/recipe/session/types.ts +++ b/lib/ts/recipe/session/types.ts @@ -227,14 +227,14 @@ export type RecipeInterface = { revokeAllSessionsForUser(input: { userId: string; - tenantId: string; + tenantId?: string; revokeAcrossAllTenants?: boolean; userContext: any; }): Promise; getAllSessionHandlesForUser(input: { userId: string; - tenantId: string; + tenantId?: string; fetchAcrossAllTenants?: boolean; userContext: any; }): Promise;