diff --git a/CHANGELOG.md b/CHANGELOG.md
index ef7d593d6..19a135b7b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,15 +5,17 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
-## [unreleased]
-
-## [16.0.1] - 2023-09-25
+## [16.2.0] - 2023-09-29
### Changes
- Added `validateAccessToken` to the configuration for social login providers, this function allows you to verify the access token returned by the social provider. If you are using Github as a provider, there is a default implmentation provided for this function.
-## [16.0.0] - 2023-08-XX
+## [16.1.0] - 2023-09-26
+
+- Added `twitter` as a built-in thirdparty provider
+
+## [16.0.0] - 2023-09-25
### Overview
diff --git a/docs/classes/framework.BaseRequest.html b/docs/classes/framework.BaseRequest.html
index ea9ae591f..fb379d927 100644
--- a/docs/classes/framework.BaseRequest.html
+++ b/docs/classes/framework.BaseRequest.html
@@ -1 +1 @@
-
BaseRequest | supertokens-node Properties Abstract get Cookie Valueget Cookie Value: ( key_: string ) => undefined | string
Type declaration ( key_: string ) : undefined | string Parameters Returns undefined | string Abstract get Form Dataget Form Data: ( ) => Promise < any >
Abstract get Header Valueget Header Value: ( key: string ) => undefined | string
Type declaration ( key: string ) : undefined | string Parameters Returns undefined | string Abstract getJSONBodygetJSONBody: ( ) => Promise < any >
Abstract get Key Value From Queryget Key Value From Query: ( key: string ) => undefined | string
Type declaration ( key: string ) : undefined | string Parameters Returns undefined | string Abstract get Methodget Method: ( ) => HTTPMethod
Abstract get OriginalURLget OriginalURL: ( ) => string
wrapper Used wrapper Used: boolean
Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Property Settings Theme OS Light Dark
\ No newline at end of file
+BaseRequest | supertokens-node Properties Abstract get Cookie Valueget Cookie Value: ( key_: string ) => undefined | string
Type declaration ( key_: string ) : undefined | string Parameters Returns undefined | string Abstract get Form Dataget Form Data: ( ) => Promise < any >
Abstract get Header Valueget Header Value: ( key: string ) => undefined | string
Type declaration ( key: string ) : undefined | string Parameters Returns undefined | string Abstract getJSONBodygetJSONBody: ( ) => Promise < any >
Abstract get Key Value From Queryget Key Value From Query: ( key: string ) => undefined | string
Type declaration ( key: string ) : undefined | string Parameters Returns undefined | string Abstract get Methodget Method: ( ) => HTTPMethod
Abstract get OriginalURLget OriginalURL: ( ) => string
wrapper Used wrapper Used: boolean
Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Property Settings Theme OS Light Dark
\ No newline at end of file
diff --git a/docs/classes/framework.BaseResponse.html b/docs/classes/framework.BaseResponse.html
index 96a027460..271213f77 100644
--- a/docs/classes/framework.BaseResponse.html
+++ b/docs/classes/framework.BaseResponse.html
@@ -1 +1 @@
-BaseResponse | supertokens-node Properties Abstract remove Headerremove Header: ( key: string ) => void
Abstract sendHTMLResponsesendHTMLResponse: ( html: string ) => void
Abstract sendJSONResponsesendJSONResponse: ( content: any ) => void
Abstract set Cookieset Cookie: ( key: string , value: string , domain: undefined | string , secure: boolean , httpOnly: boolean , expires: number , path: string , sameSite: "strict" | "lax" | "none" ) => void
Type declaration ( key: string , value: string , domain: undefined | string , secure: boolean , httpOnly: boolean , expires: number , path: string , sameSite: "strict" | "lax" | "none" ) : void Parameters key: string value: string domain: undefined | string secure: boolean httpOnly: boolean expires: number path: string sameSite: "strict" | "lax" | "none" Returns void Abstract set Headerset Header: ( key: string , value: string , allowDuplicateKey: boolean ) => void
Type declaration ( key: string , value: string , allowDuplicateKey: boolean ) : void Parameters key: string value: string allowDuplicateKey: boolean Returns void Abstract set Status Codeset Status Code: ( statusCode: number ) => void
Type declaration ( statusCode: number ) : void wrapper Used wrapper Used: boolean
Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Property Settings Theme OS Light Dark
\ No newline at end of file
+BaseResponse | supertokens-node Properties Abstract remove Headerremove Header: ( key: string ) => void
Abstract sendHTMLResponsesendHTMLResponse: ( html: string ) => void
Abstract sendJSONResponsesendJSONResponse: ( content: any ) => void
Abstract set Cookieset Cookie: ( key: string , value: string , domain: undefined | string , secure: boolean , httpOnly: boolean , expires: number , path: string , sameSite: "strict" | "lax" | "none" ) => void
Type declaration ( key: string , value: string , domain: undefined | string , secure: boolean , httpOnly: boolean , expires: number , path: string , sameSite: "strict" | "lax" | "none" ) : void Parameters key: string value: string domain: undefined | string secure: boolean httpOnly: boolean expires: number path: string sameSite: "strict" | "lax" | "none" Returns void Abstract set Headerset Header: ( key: string , value: string , allowDuplicateKey: boolean ) => void
Type declaration ( key: string , value: string , allowDuplicateKey: boolean ) : void Parameters key: string value: string allowDuplicateKey: boolean Returns void Abstract set Status Codeset Status Code: ( statusCode: number ) => void
Type declaration ( statusCode: number ) : void wrapper Used wrapper Used: boolean
Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Property Settings Theme OS Light Dark
\ No newline at end of file
diff --git a/docs/classes/index.RecipeUserId.html b/docs/classes/index.RecipeUserId.html
index f4e4c9b35..e9b2f25f9 100644
--- a/docs/classes/index.RecipeUserId.html
+++ b/docs/classes/index.RecipeUserId.html
@@ -1 +1 @@
-RecipeUserId | supertokens-node Properties Private recipe User Idrecipe User Id: string
Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Method Settings Theme OS Light Dark
\ No newline at end of file
+RecipeUserId | supertokens-node Properties Private recipe User Idrecipe User Id: string
Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Method Settings Theme OS Light Dark
\ No newline at end of file
diff --git a/docs/classes/index.User.html b/docs/classes/index.User.html
index ea7d9ff91..9505830a4 100644
--- a/docs/classes/index.User.html
+++ b/docs/classes/index.User.html
@@ -1 +1 @@
-User | supertokens-node Constructors constructor new User( user: UserWithoutHelperFunctions ) : User Parameters user: UserWithoutHelperFunctions Properties Readonly emailsemails: string []
Readonly is Primary Useris Primary User: boolean
Readonly login Methodslogin Methods: LoginMethod []
Readonly phone Numbersphone Numbers: string []
Readonly tenant Idstenant Ids: string []
Readonly third Partythird Party: { id: string ; userId: string } []
Readonly time Joinedtime Joined: number
Legend Class Class with type parameter Constructor Property Method Variable Function Function with type parameter Type alias Settings Theme OS Light Dark
\ No newline at end of file
+User | supertokens-node Constructors constructor new User( user: UserWithoutHelperFunctions ) : User Parameters user: UserWithoutHelperFunctions Properties Readonly emailsemails: string []
Readonly is Primary Useris Primary User: boolean
Readonly login Methodslogin Methods: LoginMethod []
Readonly phone Numbersphone Numbers: string []
Readonly tenant Idstenant Ids: string []
Readonly third Partythird Party: { id: string ; userId: string } []
Readonly time Joinedtime Joined: number
Legend Class Class with type parameter Constructor Property Method Variable Function Function with type parameter Type alias Settings Theme OS Light Dark
\ No newline at end of file
diff --git a/docs/classes/index.default.html b/docs/classes/index.default.html
index 1e95fe702..ca47a0a50 100644
--- a/docs/classes/index.default.html
+++ b/docs/classes/index.default.html
@@ -1 +1 @@
-default | supertokens-node Properties Static ErrorError: typeof default = SuperTokensError
Static initinit: ( config: TypeInput ) => void = SuperTokens.init
Type declaration ( config: TypeInput ) : void Methods Static convert To Recipe User IdStatic create User Id Mappingcreate User Id Mapping( input: { externalUserId: string ; externalUserIdInfo?: string ; force?: boolean ; superTokensUserId: string } ) : Promise < { status: "OK" | "UNKNOWN_SUPERTOKENS_USER_ID_ERROR" } | { doesExternalUserIdExist: boolean ; doesSuperTokensUserIdExist: boolean ; status: "USER_ID_MAPPING_ALREADY_EXISTS_ERROR" } > Parameters input: { externalUserId: string ; externalUserIdInfo?: string ; force?: boolean ; superTokensUserId: string } external User Id: string Optional external User Id Info?: string Optional force?: boolean super Tokens User Id: string Returns Promise < { status: "OK" | "UNKNOWN_SUPERTOKENS_USER_ID_ERROR" } | { doesExternalUserIdExist: boolean ; doesSuperTokensUserIdExist: boolean ; status: "USER_ID_MAPPING_ALREADY_EXISTS_ERROR" } > Static delete Userdelete User( userId: string , removeAllLinkedAccounts?: boolean , userContext?: any ) : Promise < { status: "OK" } > Parameters userId: string removeAllLinkedAccounts: boolean = true Optional userContext: any Returns Promise < { status: "OK" } > Static delete User Id Mappingdelete User Id Mapping( input: { force?: boolean ; userId: string ; userIdType?: "SUPERTOKENS" | "EXTERNAL" | "ANY" } ) : Promise < { didMappingExist: boolean ; status: "OK" } > Parameters input: { force?: boolean ; userId: string ; userIdType?: "SUPERTOKENS" | "EXTERNAL" | "ANY" } Optional force?: boolean user Id: string Optional user Id Type?: "SUPERTOKENS" | "EXTERNAL" | "ANY" Returns Promise < { didMappingExist: boolean ; status: "OK" } > Static get AllCORSHeadersget AllCORSHeaders( ) : string [] Static get Request From User Contextget Request From User Context( userContext: any ) : undefined | BaseRequest Static get Userget User( userId: string , userContext?: any ) : Promise < undefined | User > Parameters userId: string Optional userContext: any Returns Promise < undefined | User > Static get User Countget User Count( includeRecipeIds?: string [] , tenantId?: string ) : Promise < number > Parameters Optional includeRecipeIds: string [] Optional tenantId: string Returns Promise < number > Static get User Id Mappingget User Id Mapping( input: { userId: string ; userIdType?: "SUPERTOKENS" | "EXTERNAL" | "ANY" } ) : Promise < { externalUserId: string ; externalUserIdInfo: undefined | string ; status: "OK" ; superTokensUserId: string } | { status: "UNKNOWN_MAPPING_ERROR" } > Parameters input: { userId: string ; userIdType?: "SUPERTOKENS" | "EXTERNAL" | "ANY" } user Id: string Optional user Id Type?: "SUPERTOKENS" | "EXTERNAL" | "ANY" Returns Promise < { externalUserId: string ; externalUserIdInfo: undefined | string ; status: "OK" ; superTokensUserId: string } | { status: "UNKNOWN_MAPPING_ERROR" } > Static get Users Newest Firstget Users Newest First( input: { includeRecipeIds?: string [] ; limit?: number ; paginationToken?: string ; query?: {} ; tenantId: string } ) : Promise < { nextPaginationToken?: string ; users: User [] } > Parameters input: { includeRecipeIds?: string [] ; limit?: number ; paginationToken?: string ; query?: {} ; tenantId: string } Optional include Recipe Ids?: string [] Optional limit?: number Optional pagination Token?: string Optional query?: {} tenant Id: string Returns Promise < { nextPaginationToken?: string ; users: User [] } > Static get Users Oldest Firstget Users Oldest First( input: { includeRecipeIds?: string [] ; limit?: number ; paginationToken?: string ; query?: {} ; tenantId: string } ) : Promise < { nextPaginationToken?: string ; users: User [] } > Parameters input: { includeRecipeIds?: string [] ; limit?: number ; paginationToken?: string ; query?: {} ; tenantId: string } Optional include Recipe Ids?: string [] Optional limit?: number Optional pagination Token?: string Optional query?: {} tenant Id: string Returns Promise < { nextPaginationToken?: string ; users: User [] } > Static list Users By Account Infolist Users By Account Info( tenantId: string , accountInfo: AccountInfo , doUnionOfAccountInfo?: boolean , userContext?: any ) : Promise < User [] > Parameters tenantId: string accountInfo: AccountInfo doUnionOfAccountInfo: boolean = false Optional userContext: any Returns Promise < User [] > Static update Or Delete User Id Mapping Infoupdate Or Delete User Id Mapping Info( input: { externalUserIdInfo?: string ; userId: string ; userIdType?: "SUPERTOKENS" | "EXTERNAL" | "ANY" } ) : Promise < { status: "OK" | "UNKNOWN_MAPPING_ERROR" } > Parameters input: { externalUserIdInfo?: string ; userId: string ; userIdType?: "SUPERTOKENS" | "EXTERNAL" | "ANY" } Optional external User Id Info?: string user Id: string Optional user Id Type?: "SUPERTOKENS" | "EXTERNAL" | "ANY" Returns Promise < { status: "OK" | "UNKNOWN_MAPPING_ERROR" } > Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Static property Static method Settings Theme OS Light Dark
\ No newline at end of file
+default | supertokens-node Properties Static ErrorError: typeof default = SuperTokensError
Static initinit: ( config: TypeInput ) => void = SuperTokens.init
Type declaration ( config: TypeInput ) : void Methods Static convert To Recipe User IdStatic create User Id Mappingcreate User Id Mapping( input: { externalUserId: string ; externalUserIdInfo?: string ; force?: boolean ; superTokensUserId: string } ) : Promise < { status: "OK" | "UNKNOWN_SUPERTOKENS_USER_ID_ERROR" } | { doesExternalUserIdExist: boolean ; doesSuperTokensUserIdExist: boolean ; status: "USER_ID_MAPPING_ALREADY_EXISTS_ERROR" } > Parameters input: { externalUserId: string ; externalUserIdInfo?: string ; force?: boolean ; superTokensUserId: string } external User Id: string Optional external User Id Info?: string Optional force?: boolean super Tokens User Id: string Returns Promise < { status: "OK" | "UNKNOWN_SUPERTOKENS_USER_ID_ERROR" } | { doesExternalUserIdExist: boolean ; doesSuperTokensUserIdExist: boolean ; status: "USER_ID_MAPPING_ALREADY_EXISTS_ERROR" } > Static delete Userdelete User( userId: string , removeAllLinkedAccounts?: boolean , userContext?: any ) : Promise < { status: "OK" } > Parameters userId: string removeAllLinkedAccounts: boolean = true Optional userContext: any Returns Promise < { status: "OK" } > Static delete User Id Mappingdelete User Id Mapping( input: { force?: boolean ; userId: string ; userIdType?: "SUPERTOKENS" | "EXTERNAL" | "ANY" } ) : Promise < { didMappingExist: boolean ; status: "OK" } > Parameters input: { force?: boolean ; userId: string ; userIdType?: "SUPERTOKENS" | "EXTERNAL" | "ANY" } Optional force?: boolean user Id: string Optional user Id Type?: "SUPERTOKENS" | "EXTERNAL" | "ANY" Returns Promise < { didMappingExist: boolean ; status: "OK" } > Static get AllCORSHeadersget AllCORSHeaders( ) : string [] Static get Request From User Contextget Request From User Context( userContext: any ) : undefined | BaseRequest Static get Userget User( userId: string , userContext?: any ) : Promise < undefined | User > Parameters userId: string Optional userContext: any Returns Promise < undefined | User > Static get User Countget User Count( includeRecipeIds?: string [] , tenantId?: string ) : Promise < number > Parameters Optional includeRecipeIds: string [] Optional tenantId: string Returns Promise < number > Static get User Id Mappingget User Id Mapping( input: { userId: string ; userIdType?: "SUPERTOKENS" | "EXTERNAL" | "ANY" } ) : Promise < { externalUserId: string ; externalUserIdInfo: undefined | string ; status: "OK" ; superTokensUserId: string } | { status: "UNKNOWN_MAPPING_ERROR" } > Parameters input: { userId: string ; userIdType?: "SUPERTOKENS" | "EXTERNAL" | "ANY" } user Id: string Optional user Id Type?: "SUPERTOKENS" | "EXTERNAL" | "ANY" Returns Promise < { externalUserId: string ; externalUserIdInfo: undefined | string ; status: "OK" ; superTokensUserId: string } | { status: "UNKNOWN_MAPPING_ERROR" } > Static get Users Newest Firstget Users Newest First( input: { includeRecipeIds?: string [] ; limit?: number ; paginationToken?: string ; query?: {} ; tenantId: string } ) : Promise < { nextPaginationToken?: string ; users: User [] } > Parameters input: { includeRecipeIds?: string [] ; limit?: number ; paginationToken?: string ; query?: {} ; tenantId: string } Optional include Recipe Ids?: string [] Optional limit?: number Optional pagination Token?: string Optional query?: {} tenant Id: string Returns Promise < { nextPaginationToken?: string ; users: User [] } > Static get Users Oldest Firstget Users Oldest First( input: { includeRecipeIds?: string [] ; limit?: number ; paginationToken?: string ; query?: {} ; tenantId: string } ) : Promise < { nextPaginationToken?: string ; users: User [] } > Parameters input: { includeRecipeIds?: string [] ; limit?: number ; paginationToken?: string ; query?: {} ; tenantId: string } Optional include Recipe Ids?: string [] Optional limit?: number Optional pagination Token?: string Optional query?: {} tenant Id: string Returns Promise < { nextPaginationToken?: string ; users: User [] } > Static list Users By Account Infolist Users By Account Info( tenantId: string , accountInfo: AccountInfo , doUnionOfAccountInfo?: boolean , userContext?: any ) : Promise < User [] > Parameters tenantId: string accountInfo: AccountInfo doUnionOfAccountInfo: boolean = false Optional userContext: any Returns Promise < User [] > Static update Or Delete User Id Mapping Infoupdate Or Delete User Id Mapping Info( input: { externalUserIdInfo?: string ; userId: string ; userIdType?: "SUPERTOKENS" | "EXTERNAL" | "ANY" } ) : Promise < { status: "OK" | "UNKNOWN_MAPPING_ERROR" } > Parameters input: { externalUserIdInfo?: string ; userId: string ; userIdType?: "SUPERTOKENS" | "EXTERNAL" | "ANY" } Optional external User Id Info?: string user Id: string Optional user Id Type?: "SUPERTOKENS" | "EXTERNAL" | "ANY" Returns Promise < { status: "OK" | "UNKNOWN_MAPPING_ERROR" } > Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Static property Static method Settings Theme OS Light Dark
\ No newline at end of file
diff --git a/docs/classes/ingredients_emaildelivery.default.html b/docs/classes/ingredients_emaildelivery.default.html
index 31ade1521..637af3dc8 100644
--- a/docs/classes/ingredients_emaildelivery.default.html
+++ b/docs/classes/ingredients_emaildelivery.default.html
@@ -1 +1 @@
-default | supertokens-node Constructors constructor new default< T > ( config: TypeInputWithService < T > ) : default < T > Type parameters Parameters config: TypeInputWithService < T > Properties ingredient Interface Impl ingredient Interface Impl: EmailDeliveryInterface < T >
Legend Variable Function Function with type parameter Type alias Class Class with type parameter Property Settings Theme OS Light Dark
\ No newline at end of file
+default | supertokens-node Constructors constructor new default< T > ( config: TypeInputWithService < T > ) : default < T > Type parameters Parameters config: TypeInputWithService < T > Properties ingredient Interface Impl ingredient Interface Impl: EmailDeliveryInterface < T >
Legend Variable Function Function with type parameter Type alias Class Class with type parameter Property Settings Theme OS Light Dark
\ No newline at end of file
diff --git a/docs/classes/ingredients_smsdelivery.default.html b/docs/classes/ingredients_smsdelivery.default.html
index 49163f230..bfa2a085c 100644
--- a/docs/classes/ingredients_smsdelivery.default.html
+++ b/docs/classes/ingredients_smsdelivery.default.html
@@ -1 +1 @@
-default | supertokens-node Constructors constructor new default< T > ( config: TypeInputWithService < T > ) : default < T > Type parameters Parameters config: TypeInputWithService < T > Properties ingredient Interface Impl ingredient Interface Impl: SmsDeliveryInterface < T >
Legend Variable Function Function with type parameter Type alias Class Class with type parameter Property Settings Theme OS Light Dark
\ No newline at end of file
+default | supertokens-node Constructors constructor new default< T > ( config: TypeInputWithService < T > ) : default < T > Type parameters Parameters config: TypeInputWithService < T > Properties ingredient Interface Impl ingredient Interface Impl: SmsDeliveryInterface < T >
Legend Variable Function Function with type parameter Type alias Class Class with type parameter Property Settings Theme OS Light Dark
\ No newline at end of file
diff --git a/docs/classes/recipe_accountlinking.default.html b/docs/classes/recipe_accountlinking.default.html
index 5644e0b2b..026d3f3d3 100644
--- a/docs/classes/recipe_accountlinking.default.html
+++ b/docs/classes/recipe_accountlinking.default.html
@@ -1,15 +1,15 @@
-default | supertokens-node Properties Static initinit: ( config?: TypeInput ) => RecipeListFunction = Recipe.init
Type declaration ( config?: TypeInput ) : RecipeListFunction Parameters Optional config: TypeInput Returns RecipeListFunction Methods Static can Create Primary Usercan Create Primary User( recipeUserId: RecipeUserId , userContext?: any ) : Promise < { status: "OK" ; wasAlreadyAPrimaryUser: boolean } | { description: string ; primaryUserId: string ; status: "RECIPE_USER_ID_ALREADY_LINKED_WITH_PRIMARY_USER_ID_ERROR" | "ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR" } > Parameters Returns Promise < { status: "OK" ; wasAlreadyAPrimaryUser: boolean } | { description: string ; primaryUserId: string ; status: "RECIPE_USER_ID_ALREADY_LINKED_WITH_PRIMARY_USER_ID_ERROR" | "ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR" } > Static can Link Accountscan Link Accounts( recipeUserId: RecipeUserId , primaryUserId: string , userContext?: any ) : Promise < { accountsAlreadyLinked: boolean ; status: "OK" } | { description: string ; primaryUserId: string ; status: "RECIPE_USER_ID_ALREADY_LINKED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR" } | { description: string ; primaryUserId: string ; status: "ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR" } | { status: "INPUT_USER_IS_NOT_A_PRIMARY_USER" } > Parameters primaryUserId: string userContext: any = {} Returns Promise < { accountsAlreadyLinked: boolean ; status: "OK" } | { description: string ; primaryUserId: string ; status: "RECIPE_USER_ID_ALREADY_LINKED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR" } | { description: string ; primaryUserId: string ; status: "ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR" } | { status: "INPUT_USER_IS_NOT_A_PRIMARY_USER" } > Static create Primary Usercreate Primary User( recipeUserId: RecipeUserId , userContext?: any ) : Promise < { status: "OK" ; user: User ; wasAlreadyAPrimaryUser: boolean } | { primaryUserId: string ; status: "RECIPE_USER_ID_ALREADY_LINKED_WITH_PRIMARY_USER_ID_ERROR" } | { description: string ; primaryUserId: string ; status: "ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR" } > Parameters Returns Promise < { status: "OK" ; user: User ; wasAlreadyAPrimaryUser: boolean } | { primaryUserId: string ; status: "RECIPE_USER_ID_ALREADY_LINKED_WITH_PRIMARY_USER_ID_ERROR" } | { description: string ; primaryUserId: string ; status: "ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR" } > Static create Primary User Id Or Link Accountscreate Primary User Id Or Link Accounts( tenantId: string , recipeUserId: RecipeUserId , userContext?: any ) : Promise < User > Parameters tenantId: string userContext: any = {} Returns Promise < undefined | User > Static is Email Change Allowedis Email Change Allowed( recipeUserId: RecipeUserId , newEmail: string , isVerified: boolean , userContext?: any ) : Promise < boolean > Parameters newEmail: string isVerified: boolean Optional userContext: any Returns Promise < boolean > Static is Sign In Allowedis Sign In Allowed( tenantId: string , recipeUserId: RecipeUserId , userContext?: any ) : Promise < boolean > Parameters tenantId: string userContext: any = {} Returns Promise < boolean > Static is Sign Up Allowedis Sign Up Allowed( tenantId: string , newUser: AccountInfoWithRecipeId , isVerified: boolean , userContext?: any ) : Promise < boolean > Parameters tenantId: string newUser: AccountInfoWithRecipeId isVerified: boolean Optional userContext: any Returns Promise < boolean > Static link Accountslink Accounts( recipeUserId: RecipeUserId , primaryUserId: string , userContext?: any ) : Promise < { accountsAlreadyLinked: boolean ; status: "OK" ; user: User } | { primaryUserId: string ; status: "RECIPE_USER_ID_ALREADY_LINKED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR" ; user: User } | { description: string ; primaryUserId: string ; status: "ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR" } | { status: "INPUT_USER_IS_NOT_A_PRIMARY_USER" } > Parameters primaryUserId: string userContext: any = {} Returns Promise < { accountsAlreadyLinked: boolean ; status: "OK" ; user: User } | { primaryUserId: string ; status: "RECIPE_USER_ID_ALREADY_LINKED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR" ; user: User } | { description: string ; primaryUserId: string ; status: "ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR" } | { status: "INPUT_USER_IS_NOT_A_PRIMARY_USER" } > Static unlink Accountunlink Account( recipeUserId: RecipeUserId , userContext?: any ) : Promise < { status: "OK" ; wasLinked: boolean ; wasRecipeUserDeleted: boolean } > Parameters Returns Promise < { status: "OK" ; wasLinked: boolean ; wasRecipeUserDeleted: boolean } > Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Static property Static method Settings Theme OS Light Dark
\ No newline at end of file
diff --git a/docs/classes/recipe_dashboard.default.html b/docs/classes/recipe_dashboard.default.html
index 682ab6072..65d31c5f5 100644
--- a/docs/classes/recipe_dashboard.default.html
+++ b/docs/classes/recipe_dashboard.default.html
@@ -1 +1 @@
-default | supertokens-node Properties Static initinit: ( config?: TypeInput ) => RecipeListFunction = Recipe.init
Type declaration ( config?: TypeInput ) : RecipeListFunction Parameters Optional config: TypeInput Returns RecipeListFunction Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Settings Theme OS Light Dark
\ No newline at end of file
+default | supertokens-node Properties Static initinit: ( config?: TypeInput ) => RecipeListFunction = Recipe.init
Type declaration ( config?: TypeInput ) : RecipeListFunction Parameters Optional config: TypeInput Returns RecipeListFunction Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Settings Theme OS Light Dark
\ No newline at end of file
diff --git a/docs/classes/recipe_emailpassword.default.html b/docs/classes/recipe_emailpassword.default.html
index 102f528a5..d2d14588f 100644
--- a/docs/classes/recipe_emailpassword.default.html
+++ b/docs/classes/recipe_emailpassword.default.html
@@ -1,4 +1,4 @@
-default | supertokens-node Properties Static ErrorError: typeof default = SuperTokensError
Static initinit: ( config?: TypeInput ) => RecipeListFunction = Recipe.init
Type declaration ( config?: TypeInput ) : RecipeListFunction Parameters Optional config: TypeInput Returns RecipeListFunction Methods Static consume Password Reset Tokenconsume Password Reset Token( tenantId: string , token: string , userContext?: any ) : Promise < { email: string ; status: "OK" ; userId: string } | { status: "RESET_PASSWORD_INVALID_TOKEN_ERROR" } > Parameters tenantId: string token: string Optional userContext: any Returns Promise < { email: string ; status: "OK" ; userId: string } | { status: "RESET_PASSWORD_INVALID_TOKEN_ERROR" } > Static create Reset Password Linkcreate Reset Password Link( tenantId: string , userId: string , email: string , userContext?: any ) : Promise < { link: string ; status: "OK" } | { status: "UNKNOWN_USER_ID_ERROR" } > Parameters tenantId: string userId: string email: string userContext: any = {} Returns Promise < { link: string ; status: "OK" } | { status: "UNKNOWN_USER_ID_ERROR" } > Static create Reset Password Tokencreate Reset Password Token( tenantId: string , userId: string , email: string , userContext?: any ) : Promise < { status: "OK" ; token: string } | { status: "UNKNOWN_USER_ID_ERROR" } > Parameters tenantId: string userId: string email: string Optional userContext: any Returns Promise < { status: "OK" ; token: string } | { status: "UNKNOWN_USER_ID_ERROR" } > Static reset Password Using Tokenreset Password Using Token( tenantId: string , token: string , newPassword: string , userContext?: any ) : Promise < { status: "RESET_PASSWORD_INVALID_TOKEN_ERROR" } | { status: "OK" | "EMAIL_ALREADY_EXISTS_ERROR" | "UNKNOWN_USER_ID_ERROR" } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" } | { failureReason: string ; status: "PASSWORD_POLICY_VIOLATED_ERROR" } > Parameters tenantId: string token: string newPassword: string Optional userContext: any Returns Promise < { status: "RESET_PASSWORD_INVALID_TOKEN_ERROR" } | { status: "OK" | "EMAIL_ALREADY_EXISTS_ERROR" | "UNKNOWN_USER_ID_ERROR" } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" } | { failureReason: string ; status: "PASSWORD_POLICY_VIOLATED_ERROR" } > Static send Emailsend Email( input: TypeEmailPasswordPasswordResetEmailDeliveryInput & { userContext?: any } ) : Promise < void > Parameters input: TypeEmailPasswordPasswordResetEmailDeliveryInput & { userContext?: any } Returns Promise < void > Static send Reset Password Emailsend Reset Password Email( tenantId: string , userId: string , email: string , userContext?: any ) : Promise < { status: "OK" | "UNKNOWN_USER_ID_ERROR" } > Parameters tenantId: string userId: string email: string userContext: any = {} Returns Promise < { status: "OK" | "UNKNOWN_USER_ID_ERROR" } > Static sign Insign In( tenantId: string , email: string , password: string , userContext?: any ) : Promise < { recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { status: "WRONG_CREDENTIALS_ERROR" } > Parameters tenantId: string email: string password: string Optional userContext: any Returns Promise < { recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { status: "WRONG_CREDENTIALS_ERROR" } > Static sign Upsign Up( tenantId: string , email: string , password: string , userContext?: any ) : Promise < { recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { status: "EMAIL_ALREADY_EXISTS_ERROR" } > Parameters tenantId: string email: string password: string Optional userContext: any Returns Promise < { recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { status: "EMAIL_ALREADY_EXISTS_ERROR" } > Static update Email Or Passwordupdate Email Or Password( input: { applyPasswordPolicy?: boolean ; email?: string ; password?: string ; recipeUserId: RecipeUserId ; tenantIdForPasswordPolicy?: string ; userContext?: any } ) : Promise < { status: "OK" | "EMAIL_ALREADY_EXISTS_ERROR" | "UNKNOWN_USER_ID_ERROR" } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" } | { failureReason: string ; status: "PASSWORD_POLICY_VIOLATED_ERROR" } > Parameters input: { applyPasswordPolicy?: boolean ; email?: string ; password?: string ; recipeUserId: RecipeUserId ; tenantIdForPasswordPolicy?: string ; userContext?: any } Optional apply Password Policy?: boolean Optional email?: string Optional password?: string Optional tenant Id For Password Policy?: string Optional user Context?: any Returns Promise < { status: "OK" | "EMAIL_ALREADY_EXISTS_ERROR" | "UNKNOWN_USER_ID_ERROR" } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" } | { failureReason: string ; status: "PASSWORD_POLICY_VIOLATED_ERROR" } > Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Static property Static method Settings Theme OS Light Dark
\ No newline at end of file
diff --git a/docs/classes/recipe_emailverification.default.html b/docs/classes/recipe_emailverification.default.html
index eb591b494..e8c88b2a0 100644
--- a/docs/classes/recipe_emailverification.default.html
+++ b/docs/classes/recipe_emailverification.default.html
@@ -1 +1 @@
-default | supertokens-node Properties Static Email Verification ClaimEmail Verification Claim: EmailVerificationClaimClass = EmailVerificationClaim
Static ErrorError: typeof default = SuperTokensError
Static initinit: ( config: TypeInput ) => RecipeListFunction = Recipe.init
Type declaration ( config: TypeInput ) : RecipeListFunction Parameters Returns RecipeListFunction Methods Static create Email Verification Linkcreate Email Verification Link( tenantId: string , recipeUserId: RecipeUserId , email?: string , userContext?: any ) : Promise < { link: string ; status: "OK" } | { status: "EMAIL_ALREADY_VERIFIED_ERROR" } > Parameters tenantId: string Optional email: string userContext: any = {} Returns Promise < { link: string ; status: "OK" } | { status: "EMAIL_ALREADY_VERIFIED_ERROR" } > Static create Email Verification Tokencreate Email Verification Token( tenantId: string , recipeUserId: RecipeUserId , email?: string , userContext?: any ) : Promise < { status: "OK" ; token: string } | { status: "EMAIL_ALREADY_VERIFIED_ERROR" } > Parameters tenantId: string Optional email: string userContext: any = {} Returns Promise < { status: "OK" ; token: string } | { status: "EMAIL_ALREADY_VERIFIED_ERROR" } > Static is Email Verifiedis Email Verified( recipeUserId: RecipeUserId , email?: string , userContext?: any ) : Promise < boolean > Parameters Optional email: string userContext: any = {} Returns Promise < boolean > Static revoke Email Verification Tokensrevoke Email Verification Tokens( tenantId: string , recipeUserId: RecipeUserId , email?: string , userContext?: any ) : Promise < { status: string } > Parameters tenantId: string Optional email: string userContext: any = {} Returns Promise < { status: string } > Static send Emailsend Email( input: TypeEmailVerificationEmailDeliveryInput & { userContext?: any } ) : Promise < void > Parameters input: TypeEmailVerificationEmailDeliveryInput & { userContext?: any } Returns Promise < void > Static send Email Verification Emailsend Email Verification Email( tenantId: string , userId: string , recipeUserId: RecipeUserId , email?: string , userContext?: any ) : Promise < { status: "OK" } | { status: "EMAIL_ALREADY_VERIFIED_ERROR" } > Parameters tenantId: string userId: string Optional email: string userContext: any = {} Returns Promise < { status: "OK" } | { status: "EMAIL_ALREADY_VERIFIED_ERROR" } > Static unverify Emailunverify Email( recipeUserId: RecipeUserId , email?: string , userContext?: any ) : Promise < { status: string } > Parameters Optional email: string userContext: any = {} Returns Promise < { status: string } > Static verify Email Using Tokenverify Email Using Token( tenantId: string , token: string , attemptAccountLinking?: boolean , userContext?: any ) : Promise < { status: "OK" ; user: UserEmailInfo } | { status: "EMAIL_VERIFICATION_INVALID_TOKEN_ERROR" } > Parameters tenantId: string token: string attemptAccountLinking: boolean = true userContext: any = {} Returns Promise < { status: "OK" ; user: UserEmailInfo } | { status: "EMAIL_VERIFICATION_INVALID_TOKEN_ERROR" } > Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Static property Static method Settings Theme OS Light Dark
\ No newline at end of file
+default | supertokens-node Properties Static Email Verification ClaimEmail Verification Claim: EmailVerificationClaimClass = EmailVerificationClaim
Static ErrorError: typeof default = SuperTokensError
Static initinit: ( config: TypeInput ) => RecipeListFunction = Recipe.init
Type declaration ( config: TypeInput ) : RecipeListFunction Parameters Returns RecipeListFunction Methods Static create Email Verification Linkcreate Email Verification Link( tenantId: string , recipeUserId: RecipeUserId , email?: string , userContext?: any ) : Promise < { link: string ; status: "OK" } | { status: "EMAIL_ALREADY_VERIFIED_ERROR" } > Parameters tenantId: string Optional email: string userContext: any = {} Returns Promise < { link: string ; status: "OK" } | { status: "EMAIL_ALREADY_VERIFIED_ERROR" } > Static create Email Verification Tokencreate Email Verification Token( tenantId: string , recipeUserId: RecipeUserId , email?: string , userContext?: any ) : Promise < { status: "OK" ; token: string } | { status: "EMAIL_ALREADY_VERIFIED_ERROR" } > Parameters tenantId: string Optional email: string userContext: any = {} Returns Promise < { status: "OK" ; token: string } | { status: "EMAIL_ALREADY_VERIFIED_ERROR" } > Static is Email Verifiedis Email Verified( recipeUserId: RecipeUserId , email?: string , userContext?: any ) : Promise < boolean > Parameters Optional email: string userContext: any = {} Returns Promise < boolean > Static revoke Email Verification Tokensrevoke Email Verification Tokens( tenantId: string , recipeUserId: RecipeUserId , email?: string , userContext?: any ) : Promise < { status: string } > Parameters tenantId: string Optional email: string userContext: any = {} Returns Promise < { status: string } > Static send Emailsend Email( input: TypeEmailVerificationEmailDeliveryInput & { userContext?: any } ) : Promise < void > Parameters input: TypeEmailVerificationEmailDeliveryInput & { userContext?: any } Returns Promise < void > Static send Email Verification Emailsend Email Verification Email( tenantId: string , userId: string , recipeUserId: RecipeUserId , email?: string , userContext?: any ) : Promise < { status: "OK" } | { status: "EMAIL_ALREADY_VERIFIED_ERROR" } > Parameters tenantId: string userId: string Optional email: string userContext: any = {} Returns Promise < { status: "OK" } | { status: "EMAIL_ALREADY_VERIFIED_ERROR" } > Static unverify Emailunverify Email( recipeUserId: RecipeUserId , email?: string , userContext?: any ) : Promise < { status: string } > Parameters Optional email: string userContext: any = {} Returns Promise < { status: string } > Static verify Email Using Tokenverify Email Using Token( tenantId: string , token: string , attemptAccountLinking?: boolean , userContext?: any ) : Promise < { status: "OK" ; user: UserEmailInfo } | { status: "EMAIL_VERIFICATION_INVALID_TOKEN_ERROR" } > Parameters tenantId: string token: string attemptAccountLinking: boolean = true userContext: any = {} Returns Promise < { status: "OK" ; user: UserEmailInfo } | { status: "EMAIL_VERIFICATION_INVALID_TOKEN_ERROR" } > Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Static property Static method Settings Theme OS Light Dark
\ No newline at end of file
diff --git a/docs/classes/recipe_jwt.default.html b/docs/classes/recipe_jwt.default.html
index 4a9e8f40f..736400243 100644
--- a/docs/classes/recipe_jwt.default.html
+++ b/docs/classes/recipe_jwt.default.html
@@ -1 +1 @@
-default | supertokens-node Properties Static initinit: ( config?: TypeInput ) => RecipeListFunction = Recipe.init
Type declaration ( config?: TypeInput ) : RecipeListFunction Parameters Optional config: TypeInput Returns RecipeListFunction Methods Static createJWTcreateJWT( payload: any , validitySeconds?: number , useStaticSigningKey?: boolean , userContext?: any ) : Promise < { jwt: string ; status: "OK" } | { status: "UNSUPPORTED_ALGORITHM_ERROR" } > Parameters payload: any Optional validitySeconds: number Optional useStaticSigningKey: boolean Optional userContext: any Returns Promise < { jwt: string ; status: "OK" } | { status: "UNSUPPORTED_ALGORITHM_ERROR" } > Static getJWKSgetJWKS( userContext?: any ) : Promise < { keys: JsonWebKey [] ; validityInSeconds?: number } > Parameters Optional userContext: any Returns Promise < { keys: JsonWebKey [] ; validityInSeconds?: number } > Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Static property Static method Settings Theme OS Light Dark
\ No newline at end of file
+default | supertokens-node Properties Static initinit: ( config?: TypeInput ) => RecipeListFunction = Recipe.init
Type declaration ( config?: TypeInput ) : RecipeListFunction Parameters Optional config: TypeInput Returns RecipeListFunction Methods Static createJWTcreateJWT( payload: any , validitySeconds?: number , useStaticSigningKey?: boolean , userContext?: any ) : Promise < { jwt: string ; status: "OK" } | { status: "UNSUPPORTED_ALGORITHM_ERROR" } > Parameters payload: any Optional validitySeconds: number Optional useStaticSigningKey: boolean Optional userContext: any Returns Promise < { jwt: string ; status: "OK" } | { status: "UNSUPPORTED_ALGORITHM_ERROR" } > Static getJWKSgetJWKS( userContext?: any ) : Promise < { keys: JsonWebKey [] ; validityInSeconds?: number } > Parameters Optional userContext: any Returns Promise < { keys: JsonWebKey [] ; validityInSeconds?: number } > Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Static property Static method Settings Theme OS Light Dark
\ No newline at end of file
diff --git a/docs/classes/recipe_multitenancy.default.html b/docs/classes/recipe_multitenancy.default.html
index 66ba2d7f0..df39ef66f 100644
--- a/docs/classes/recipe_multitenancy.default.html
+++ b/docs/classes/recipe_multitenancy.default.html
@@ -1 +1 @@
-default | supertokens-node Properties Static initinit: ( config?: TypeInput ) => RecipeListFunction = Recipe.init
Type declaration ( config?: TypeInput ) : RecipeListFunction Parameters Optional config: TypeInput Returns RecipeListFunction Methods Static associate User To Tenantassociate User To Tenant( tenantId: string , recipeUserId: RecipeUserId , userContext?: any ) : Promise < { status: "OK" ; wasAlreadyAssociated: boolean } | { status: "EMAIL_ALREADY_EXISTS_ERROR" | "UNKNOWN_USER_ID_ERROR" | "PHONE_NUMBER_ALREADY_EXISTS_ERROR" | "THIRD_PARTY_USER_ALREADY_EXISTS_ERROR" } | { reason: string ; status: "ASSOCIATION_NOT_ALLOWED_ERROR" } > Parameters tenantId: string Optional userContext: any Returns Promise < { status: "OK" ; wasAlreadyAssociated: boolean } | { status: "EMAIL_ALREADY_EXISTS_ERROR" | "UNKNOWN_USER_ID_ERROR" | "PHONE_NUMBER_ALREADY_EXISTS_ERROR" | "THIRD_PARTY_USER_ALREADY_EXISTS_ERROR" } | { reason: string ; status: "ASSOCIATION_NOT_ALLOWED_ERROR" } > Static create Or Update Tenantcreate Or Update Tenant( tenantId: string , config?: { coreConfig?: {} ; emailPasswordEnabled?: boolean ; passwordlessEnabled?: boolean ; thirdPartyEnabled?: boolean } , userContext?: any ) : Promise < { createdNew: boolean ; status: "OK" } > Parameters tenantId: string Optional config: { coreConfig?: {} ; emailPasswordEnabled?: boolean ; passwordlessEnabled?: boolean ; thirdPartyEnabled?: boolean } Optional core Config?: {} Optional email Password Enabled?: boolean Optional passwordless Enabled?: boolean Optional third Party Enabled?: boolean Optional userContext: any Returns Promise < { createdNew: boolean ; status: "OK" } > Static create Or Update Third Party Configcreate Or Update Third Party Config( tenantId: string , config: ProviderConfig , skipValidation?: boolean , userContext?: any ) : Promise < { createdNew: boolean ; status: "OK" } > Parameters tenantId: string config: ProviderConfig Optional skipValidation: boolean Optional userContext: any Returns Promise < { createdNew: boolean ; status: "OK" } > Static delete Tenantdelete Tenant( tenantId: string , userContext?: any ) : Promise < { didExist: boolean ; status: "OK" } > Parameters tenantId: string Optional userContext: any Returns Promise < { didExist: boolean ; status: "OK" } > Static delete Third Party Configdelete Third Party Config( tenantId: string , thirdPartyId: string , userContext?: any ) : Promise < { didConfigExist: boolean ; status: "OK" } > Parameters tenantId: string thirdPartyId: string Optional userContext: any Returns Promise < { didConfigExist: boolean ; status: "OK" } > Static disassociate User From Tenantdisassociate User From Tenant( tenantId: string , recipeUserId: RecipeUserId , userContext?: any ) : Promise < { status: "OK" ; wasAssociated: boolean } > Parameters tenantId: string Optional userContext: any Returns Promise < { status: "OK" ; wasAssociated: boolean } > Static get Tenantget Tenant( tenantId: string , userContext?: any ) : Promise < undefined | { coreConfig: {} ; emailPassword: { enabled: boolean } ; passwordless: { enabled: boolean } ; status: "OK" ; thirdParty: { enabled: boolean ; providers: ProviderConfig [] } } > Parameters tenantId: string Optional userContext: any Returns Promise < undefined | { coreConfig: {} ; emailPassword: { enabled: boolean } ; passwordless: { enabled: boolean } ; status: "OK" ; thirdParty: { enabled: boolean ; providers: ProviderConfig [] } } > Static list All Tenantslist All Tenants( userContext?: any ) : Promise < { status: "OK" ; tenants: { coreConfig: {} ; emailPassword: { enabled: boolean } ; passwordless: { enabled: boolean } ; tenantId: string ; thirdParty: { enabled: boolean ; providers: ProviderConfig [] } } [] } > Parameters Optional userContext: any Returns Promise < { status: "OK" ; tenants: { coreConfig: {} ; emailPassword: { enabled: boolean } ; passwordless: { enabled: boolean } ; tenantId: string ; thirdParty: { enabled: boolean ; providers: ProviderConfig [] } } [] } > Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Static property Static method Settings Theme OS Light Dark
\ No newline at end of file
+default | supertokens-node Properties Static initinit: ( config?: TypeInput ) => RecipeListFunction = Recipe.init
Type declaration ( config?: TypeInput ) : RecipeListFunction Parameters Optional config: TypeInput Returns RecipeListFunction Methods Static associate User To Tenantassociate User To Tenant( tenantId: string , recipeUserId: RecipeUserId , userContext?: any ) : Promise < { status: "OK" ; wasAlreadyAssociated: boolean } | { status: "EMAIL_ALREADY_EXISTS_ERROR" | "UNKNOWN_USER_ID_ERROR" | "PHONE_NUMBER_ALREADY_EXISTS_ERROR" | "THIRD_PARTY_USER_ALREADY_EXISTS_ERROR" } | { reason: string ; status: "ASSOCIATION_NOT_ALLOWED_ERROR" } > Parameters tenantId: string Optional userContext: any Returns Promise < { status: "OK" ; wasAlreadyAssociated: boolean } | { status: "EMAIL_ALREADY_EXISTS_ERROR" | "UNKNOWN_USER_ID_ERROR" | "PHONE_NUMBER_ALREADY_EXISTS_ERROR" | "THIRD_PARTY_USER_ALREADY_EXISTS_ERROR" } | { reason: string ; status: "ASSOCIATION_NOT_ALLOWED_ERROR" } > Static create Or Update Tenantcreate Or Update Tenant( tenantId: string , config?: { coreConfig?: {} ; emailPasswordEnabled?: boolean ; passwordlessEnabled?: boolean ; thirdPartyEnabled?: boolean } , userContext?: any ) : Promise < { createdNew: boolean ; status: "OK" } > Parameters tenantId: string Optional config: { coreConfig?: {} ; emailPasswordEnabled?: boolean ; passwordlessEnabled?: boolean ; thirdPartyEnabled?: boolean } Optional core Config?: {} Optional email Password Enabled?: boolean Optional passwordless Enabled?: boolean Optional third Party Enabled?: boolean Optional userContext: any Returns Promise < { createdNew: boolean ; status: "OK" } > Static create Or Update Third Party Configcreate Or Update Third Party Config( tenantId: string , config: ProviderConfig , skipValidation?: boolean , userContext?: any ) : Promise < { createdNew: boolean ; status: "OK" } > Parameters tenantId: string config: ProviderConfig Optional skipValidation: boolean Optional userContext: any Returns Promise < { createdNew: boolean ; status: "OK" } > Static delete Tenantdelete Tenant( tenantId: string , userContext?: any ) : Promise < { didExist: boolean ; status: "OK" } > Parameters tenantId: string Optional userContext: any Returns Promise < { didExist: boolean ; status: "OK" } > Static delete Third Party Configdelete Third Party Config( tenantId: string , thirdPartyId: string , userContext?: any ) : Promise < { didConfigExist: boolean ; status: "OK" } > Parameters tenantId: string thirdPartyId: string Optional userContext: any Returns Promise < { didConfigExist: boolean ; status: "OK" } > Static disassociate User From Tenantdisassociate User From Tenant( tenantId: string , recipeUserId: RecipeUserId , userContext?: any ) : Promise < { status: "OK" ; wasAssociated: boolean } > Parameters tenantId: string Optional userContext: any Returns Promise < { status: "OK" ; wasAssociated: boolean } > Static get Tenantget Tenant( tenantId: string , userContext?: any ) : Promise < undefined | { coreConfig: {} ; emailPassword: { enabled: boolean } ; passwordless: { enabled: boolean } ; status: "OK" ; thirdParty: { enabled: boolean ; providers: ProviderConfig [] } } > Parameters tenantId: string Optional userContext: any Returns Promise < undefined | { coreConfig: {} ; emailPassword: { enabled: boolean } ; passwordless: { enabled: boolean } ; status: "OK" ; thirdParty: { enabled: boolean ; providers: ProviderConfig [] } } > Static list All Tenantslist All Tenants( userContext?: any ) : Promise < { status: "OK" ; tenants: { coreConfig: {} ; emailPassword: { enabled: boolean } ; passwordless: { enabled: boolean } ; tenantId: string ; thirdParty: { enabled: boolean ; providers: ProviderConfig [] } } [] } > Parameters Optional userContext: any Returns Promise < { status: "OK" ; tenants: { coreConfig: {} ; emailPassword: { enabled: boolean } ; passwordless: { enabled: boolean } ; tenantId: string ; thirdParty: { enabled: boolean ; providers: ProviderConfig [] } } [] } > Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Static property Static method Settings Theme OS Light Dark
\ No newline at end of file
diff --git a/docs/classes/recipe_openid.default.html b/docs/classes/recipe_openid.default.html
index 2696d2ba0..3aaf23c65 100644
--- a/docs/classes/recipe_openid.default.html
+++ b/docs/classes/recipe_openid.default.html
@@ -1 +1 @@
-default | supertokens-node Properties Static initinit: ( config?: TypeInput ) => RecipeListFunction = OpenIdRecipe.init
Type declaration ( config?: TypeInput ) : RecipeListFunction Parameters Optional config: TypeInput Returns RecipeListFunction Methods Static createJWTcreateJWT( payload?: any , validitySeconds?: number , useStaticSigningKey?: boolean , userContext?: any ) : Promise < { jwt: string ; status: "OK" } | { status: "UNSUPPORTED_ALGORITHM_ERROR" } > Parameters Optional payload: any Optional validitySeconds: number Optional useStaticSigningKey: boolean Optional userContext: any Returns Promise < { jwt: string ; status: "OK" } | { status: "UNSUPPORTED_ALGORITHM_ERROR" } > Static getJWKSgetJWKS( userContext?: any ) : Promise < { keys: JsonWebKey [] ; validityInSeconds?: number } > Parameters Optional userContext: any Returns Promise < { keys: JsonWebKey [] ; validityInSeconds?: number } > Static get Open Id Discovery Configurationget Open Id Discovery Configuration( userContext?: any ) : Promise < { issuer: string ; jwks_uri: string ; status: "OK" } > Parameters Optional userContext: any Returns Promise < { issuer: string ; jwks_uri: string ; status: "OK" } > Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Static property Static method Settings Theme OS Light Dark
\ No newline at end of file
+default | supertokens-node Properties Static initinit: ( config?: TypeInput ) => RecipeListFunction = OpenIdRecipe.init
Type declaration ( config?: TypeInput ) : RecipeListFunction Parameters Optional config: TypeInput Returns RecipeListFunction Methods Static createJWTcreateJWT( payload?: any , validitySeconds?: number , useStaticSigningKey?: boolean , userContext?: any ) : Promise < { jwt: string ; status: "OK" } | { status: "UNSUPPORTED_ALGORITHM_ERROR" } > Parameters Optional payload: any Optional validitySeconds: number Optional useStaticSigningKey: boolean Optional userContext: any Returns Promise < { jwt: string ; status: "OK" } | { status: "UNSUPPORTED_ALGORITHM_ERROR" } > Static getJWKSgetJWKS( userContext?: any ) : Promise < { keys: JsonWebKey [] ; validityInSeconds?: number } > Parameters Optional userContext: any Returns Promise < { keys: JsonWebKey [] ; validityInSeconds?: number } > Static get Open Id Discovery Configurationget Open Id Discovery Configuration( userContext?: any ) : Promise < { issuer: string ; jwks_uri: string ; status: "OK" } > Parameters Optional userContext: any Returns Promise < { issuer: string ; jwks_uri: string ; status: "OK" } > Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Static property Static method Settings Theme OS Light Dark
\ No newline at end of file
diff --git a/docs/classes/recipe_passwordless.default.html b/docs/classes/recipe_passwordless.default.html
index e3fab789d..a811bd19a 100644
--- a/docs/classes/recipe_passwordless.default.html
+++ b/docs/classes/recipe_passwordless.default.html
@@ -1 +1 @@
-default | supertokens-node Properties Static ErrorError: typeof default = SuperTokensError
Static initinit: ( config: TypeInput ) => RecipeListFunction = Recipe.init
Type declaration ( config: TypeInput ) : RecipeListFunction Parameters Returns RecipeListFunction Methods Static consume Codeconsume Code( input: { deviceId: string ; preAuthSessionId: string ; tenantId: string ; userContext?: any ; userInputCode: string } | { linkCode: string ; preAuthSessionId: string ; tenantId: string ; userContext?: any } ) : Promise < { createdNewRecipeUser: boolean ; recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { failedCodeInputAttemptCount: number ; maximumCodeInputAttempts: number ; status: "INCORRECT_USER_INPUT_CODE_ERROR" | "EXPIRED_USER_INPUT_CODE_ERROR" } | { status: "RESTART_FLOW_ERROR" } > Parameters input: { deviceId: string ; preAuthSessionId: string ; tenantId: string ; userContext?: any ; userInputCode: string } | { linkCode: string ; preAuthSessionId: string ; tenantId: string ; userContext?: any } Returns Promise < { createdNewRecipeUser: boolean ; recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { failedCodeInputAttemptCount: number ; maximumCodeInputAttempts: number ; status: "INCORRECT_USER_INPUT_CODE_ERROR" | "EXPIRED_USER_INPUT_CODE_ERROR" } | { status: "RESTART_FLOW_ERROR" } > Static create Codecreate Code( input: ( { email: string } & { tenantId: string ; userContext?: any ; userInputCode?: string } ) & ( { phoneNumber: string } & { tenantId: string ; userContext?: any ; userInputCode?: string } ) ) : Promise < { codeId: string ; codeLifetime: number ; deviceId: string ; linkCode: string ; preAuthSessionId: string ; status: "OK" ; timeCreated: number ; userInputCode: string } > Parameters input: ( { email: string } & { tenantId: string ; userContext?: any ; userInputCode?: string } ) & ( { phoneNumber: string } & { tenantId: string ; userContext?: any ; userInputCode?: string } ) Returns Promise < { codeId: string ; codeLifetime: number ; deviceId: string ; linkCode: string ; preAuthSessionId: string ; status: "OK" ; timeCreated: number ; userInputCode: string } > Static create Magic Linkcreate Magic Link( input: { email: string ; tenantId: string ; userContext?: any } | { phoneNumber: string ; tenantId: string ; userContext?: any } ) : Promise < string > Parameters input: { email: string ; tenantId: string ; userContext?: any } | { phoneNumber: string ; tenantId: string ; userContext?: any } Returns Promise < string > Static create New Code For Devicecreate New Code For Device( input: { deviceId: string ; tenantId: string ; userContext?: any ; userInputCode?: string } ) : Promise < { codeId: string ; codeLifetime: number ; deviceId: string ; linkCode: string ; preAuthSessionId: string ; status: "OK" ; timeCreated: number ; userInputCode: string } | { status: "RESTART_FLOW_ERROR" | "USER_INPUT_CODE_ALREADY_USED_ERROR" } > Parameters input: { deviceId: string ; tenantId: string ; userContext?: any ; userInputCode?: string } device Id: string tenant Id: string Optional user Context?: any Optional user Input Code?: string Returns Promise < { codeId: string ; codeLifetime: number ; deviceId: string ; linkCode: string ; preAuthSessionId: string ; status: "OK" ; timeCreated: number ; userInputCode: string } | { status: "RESTART_FLOW_ERROR" | "USER_INPUT_CODE_ALREADY_USED_ERROR" } > Static list Codes By Device Idlist Codes By Device Id( input: { deviceId: string ; tenantId: string ; userContext?: any } ) : Promise < undefined | DeviceType > Parameters input: { deviceId: string ; tenantId: string ; userContext?: any } device Id: string tenant Id: string Optional user Context?: any Returns Promise < undefined | DeviceType > Static list Codes By Emaillist Codes By Email( input: { email: string ; tenantId: string ; userContext?: any } ) : Promise < DeviceType [] > Parameters input: { email: string ; tenantId: string ; userContext?: any } email: string tenant Id: string Optional user Context?: any Returns Promise < DeviceType [] > Static list Codes By Phone Numberlist Codes By Phone Number( input: { phoneNumber: string ; tenantId: string ; userContext?: any } ) : Promise < DeviceType [] > Parameters input: { phoneNumber: string ; tenantId: string ; userContext?: any } phone Number: string tenant Id: string Optional user Context?: any Returns Promise < DeviceType [] > Static list Codes By Pre Auth Session Idlist Codes By Pre Auth Session Id( input: { preAuthSessionId: string ; tenantId: string ; userContext?: any } ) : Promise < undefined | DeviceType > Parameters input: { preAuthSessionId: string ; tenantId: string ; userContext?: any } pre Auth Session Id: string tenant Id: string Optional user Context?: any Returns Promise < undefined | DeviceType > Static revoke All Codesrevoke All Codes( input: { email: string ; tenantId: string ; userContext?: any } | { phoneNumber: string ; tenantId: string ; userContext?: any } ) : Promise < { status: "OK" } > Parameters input: { email: string ; tenantId: string ; userContext?: any } | { phoneNumber: string ; tenantId: string ; userContext?: any } Returns Promise < { status: "OK" } > Static revoke Coderevoke Code( input: { codeId: string ; tenantId: string ; userContext?: any } ) : Promise < { status: "OK" } > Parameters input: { codeId: string ; tenantId: string ; userContext?: any } code Id: string tenant Id: string Optional user Context?: any Returns Promise < { status: "OK" } > Static send Emailsend Email( input: TypePasswordlessEmailDeliveryInput & { userContext?: any } ) : Promise < void > Parameters input: TypePasswordlessEmailDeliveryInput & { userContext?: any } Returns Promise < void > Static send Smssend Sms( input: TypePasswordlessSmsDeliveryInput & { userContext?: any } ) : Promise < void > Parameters input: TypePasswordlessSmsDeliveryInput & { userContext?: any } Returns Promise < void > Static sign In Upsign In Up( input: { email: string ; tenantId: string ; userContext?: any } | { phoneNumber: string ; tenantId: string ; userContext?: any } ) : Promise < { createdNewRecipeUser: boolean ; recipeUserId: RecipeUserId ; status: string ; user: User } > Parameters input: { email: string ; tenantId: string ; userContext?: any } | { phoneNumber: string ; tenantId: string ; userContext?: any } Returns Promise < { createdNewRecipeUser: boolean ; recipeUserId: RecipeUserId ; status: string ; user: User } > Static update Userupdate User( input: { email?: null | string ; phoneNumber?: null | string ; recipeUserId: RecipeUserId ; userContext?: any } ) : Promise < { status: "OK" | "EMAIL_ALREADY_EXISTS_ERROR" | "UNKNOWN_USER_ID_ERROR" | "PHONE_NUMBER_ALREADY_EXISTS_ERROR" } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" | "PHONE_NUMBER_CHANGE_NOT_ALLOWED_ERROR" } > Parameters input: { email?: null | string ; phoneNumber?: null | string ; recipeUserId: RecipeUserId ; userContext?: any } Optional email?: null | string Optional phone Number?: null | string Optional user Context?: any Returns Promise < { status: "OK" | "EMAIL_ALREADY_EXISTS_ERROR" | "UNKNOWN_USER_ID_ERROR" | "PHONE_NUMBER_ALREADY_EXISTS_ERROR" } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" | "PHONE_NUMBER_CHANGE_NOT_ALLOWED_ERROR" } > Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Static property Static method Settings Theme OS Light Dark
\ No newline at end of file
+default | supertokens-node Properties Static ErrorError: typeof default = SuperTokensError
Static initinit: ( config: TypeInput ) => RecipeListFunction = Recipe.init
Type declaration ( config: TypeInput ) : RecipeListFunction Parameters Returns RecipeListFunction Methods Static consume Codeconsume Code( input: { deviceId: string ; preAuthSessionId: string ; tenantId: string ; userContext?: any ; userInputCode: string } | { linkCode: string ; preAuthSessionId: string ; tenantId: string ; userContext?: any } ) : Promise < { createdNewRecipeUser: boolean ; recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { failedCodeInputAttemptCount: number ; maximumCodeInputAttempts: number ; status: "INCORRECT_USER_INPUT_CODE_ERROR" | "EXPIRED_USER_INPUT_CODE_ERROR" } | { status: "RESTART_FLOW_ERROR" } > Parameters input: { deviceId: string ; preAuthSessionId: string ; tenantId: string ; userContext?: any ; userInputCode: string } | { linkCode: string ; preAuthSessionId: string ; tenantId: string ; userContext?: any } Returns Promise < { createdNewRecipeUser: boolean ; recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { failedCodeInputAttemptCount: number ; maximumCodeInputAttempts: number ; status: "INCORRECT_USER_INPUT_CODE_ERROR" | "EXPIRED_USER_INPUT_CODE_ERROR" } | { status: "RESTART_FLOW_ERROR" } > Static create Codecreate Code( input: ( { email: string } & { tenantId: string ; userContext?: any ; userInputCode?: string } ) & ( { phoneNumber: string } & { tenantId: string ; userContext?: any ; userInputCode?: string } ) ) : Promise < { codeId: string ; codeLifetime: number ; deviceId: string ; linkCode: string ; preAuthSessionId: string ; status: "OK" ; timeCreated: number ; userInputCode: string } > Parameters input: ( { email: string } & { tenantId: string ; userContext?: any ; userInputCode?: string } ) & ( { phoneNumber: string } & { tenantId: string ; userContext?: any ; userInputCode?: string } ) Returns Promise < { codeId: string ; codeLifetime: number ; deviceId: string ; linkCode: string ; preAuthSessionId: string ; status: "OK" ; timeCreated: number ; userInputCode: string } > Static create Magic Linkcreate Magic Link( input: { email: string ; tenantId: string ; userContext?: any } | { phoneNumber: string ; tenantId: string ; userContext?: any } ) : Promise < string > Parameters input: { email: string ; tenantId: string ; userContext?: any } | { phoneNumber: string ; tenantId: string ; userContext?: any } Returns Promise < string > Static create New Code For Devicecreate New Code For Device( input: { deviceId: string ; tenantId: string ; userContext?: any ; userInputCode?: string } ) : Promise < { codeId: string ; codeLifetime: number ; deviceId: string ; linkCode: string ; preAuthSessionId: string ; status: "OK" ; timeCreated: number ; userInputCode: string } | { status: "RESTART_FLOW_ERROR" | "USER_INPUT_CODE_ALREADY_USED_ERROR" } > Parameters input: { deviceId: string ; tenantId: string ; userContext?: any ; userInputCode?: string } device Id: string tenant Id: string Optional user Context?: any Optional user Input Code?: string Returns Promise < { codeId: string ; codeLifetime: number ; deviceId: string ; linkCode: string ; preAuthSessionId: string ; status: "OK" ; timeCreated: number ; userInputCode: string } | { status: "RESTART_FLOW_ERROR" | "USER_INPUT_CODE_ALREADY_USED_ERROR" } > Static list Codes By Device Idlist Codes By Device Id( input: { deviceId: string ; tenantId: string ; userContext?: any } ) : Promise < undefined | DeviceType > Parameters input: { deviceId: string ; tenantId: string ; userContext?: any } device Id: string tenant Id: string Optional user Context?: any Returns Promise < undefined | DeviceType > Static list Codes By Emaillist Codes By Email( input: { email: string ; tenantId: string ; userContext?: any } ) : Promise < DeviceType [] > Parameters input: { email: string ; tenantId: string ; userContext?: any } email: string tenant Id: string Optional user Context?: any Returns Promise < DeviceType [] > Static list Codes By Phone Numberlist Codes By Phone Number( input: { phoneNumber: string ; tenantId: string ; userContext?: any } ) : Promise < DeviceType [] > Parameters input: { phoneNumber: string ; tenantId: string ; userContext?: any } phone Number: string tenant Id: string Optional user Context?: any Returns Promise < DeviceType [] > Static list Codes By Pre Auth Session Idlist Codes By Pre Auth Session Id( input: { preAuthSessionId: string ; tenantId: string ; userContext?: any } ) : Promise < undefined | DeviceType > Parameters input: { preAuthSessionId: string ; tenantId: string ; userContext?: any } pre Auth Session Id: string tenant Id: string Optional user Context?: any Returns Promise < undefined | DeviceType > Static revoke All Codesrevoke All Codes( input: { email: string ; tenantId: string ; userContext?: any } | { phoneNumber: string ; tenantId: string ; userContext?: any } ) : Promise < { status: "OK" } > Parameters input: { email: string ; tenantId: string ; userContext?: any } | { phoneNumber: string ; tenantId: string ; userContext?: any } Returns Promise < { status: "OK" } > Static revoke Coderevoke Code( input: { codeId: string ; tenantId: string ; userContext?: any } ) : Promise < { status: "OK" } > Parameters input: { codeId: string ; tenantId: string ; userContext?: any } code Id: string tenant Id: string Optional user Context?: any Returns Promise < { status: "OK" } > Static send Emailsend Email( input: TypePasswordlessEmailDeliveryInput & { userContext?: any } ) : Promise < void > Parameters input: TypePasswordlessEmailDeliveryInput & { userContext?: any } Returns Promise < void > Static send Smssend Sms( input: TypePasswordlessSmsDeliveryInput & { userContext?: any } ) : Promise < void > Parameters input: TypePasswordlessSmsDeliveryInput & { userContext?: any } Returns Promise < void > Static sign In Upsign In Up( input: { email: string ; tenantId: string ; userContext?: any } | { phoneNumber: string ; tenantId: string ; userContext?: any } ) : Promise < { createdNewRecipeUser: boolean ; recipeUserId: RecipeUserId ; status: string ; user: User } > Parameters input: { email: string ; tenantId: string ; userContext?: any } | { phoneNumber: string ; tenantId: string ; userContext?: any } Returns Promise < { createdNewRecipeUser: boolean ; recipeUserId: RecipeUserId ; status: string ; user: User } > Static update Userupdate User( input: { email?: null | string ; phoneNumber?: null | string ; recipeUserId: RecipeUserId ; userContext?: any } ) : Promise < { status: "OK" | "EMAIL_ALREADY_EXISTS_ERROR" | "UNKNOWN_USER_ID_ERROR" | "PHONE_NUMBER_ALREADY_EXISTS_ERROR" } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" | "PHONE_NUMBER_CHANGE_NOT_ALLOWED_ERROR" } > Parameters input: { email?: null | string ; phoneNumber?: null | string ; recipeUserId: RecipeUserId ; userContext?: any } Optional email?: null | string Optional phone Number?: null | string Optional user Context?: any Returns Promise < { status: "OK" | "EMAIL_ALREADY_EXISTS_ERROR" | "UNKNOWN_USER_ID_ERROR" | "PHONE_NUMBER_ALREADY_EXISTS_ERROR" } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" | "PHONE_NUMBER_CHANGE_NOT_ALLOWED_ERROR" } > Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Static property Static method Settings Theme OS Light Dark
\ No newline at end of file
diff --git a/docs/classes/recipe_session.default.html b/docs/classes/recipe_session.default.html
index 3d3fd4940..902a83267 100644
--- a/docs/classes/recipe_session.default.html
+++ b/docs/classes/recipe_session.default.html
@@ -1,4 +1,4 @@
-default | supertokens-node Properties Static ErrorError: typeof default = SuperTokensError
Static initinit: ( config?: TypeInput ) => RecipeListFunction = Recipe.init
Type declaration ( config?: TypeInput ) : RecipeListFunction Parameters Optional config: TypeInput Returns RecipeListFunction Methods Static createJWTcreateJWT( payload?: any , validitySeconds?: number , useStaticSigningKey?: boolean , userContext?: any ) : Promise < { jwt: string ; status: "OK" } | { status: "UNSUPPORTED_ALGORITHM_ERROR" } > Parameters Optional payload: any Optional validitySeconds: number Optional useStaticSigningKey: boolean userContext: any = {} Returns Promise < { jwt: string ; status: "OK" } | { status: "UNSUPPORTED_ALGORITHM_ERROR" } > Static create New Sessioncreate New Session( req: any , res: any , tenantId: string , recipeUserId: RecipeUserId , accessTokenPayload?: any , sessionDataInDatabase?: any , userContext?: any ) : Promise < SessionContainer > Parameters req: any res: any tenantId: string accessTokenPayload: any = {} sessionDataInDatabase: any = {} userContext: any = {} Static create New Session Without Request Responsecreate New Session Without Request Response( tenantId: string , recipeUserId: RecipeUserId , accessTokenPayload?: any , sessionDataInDatabase?: any , disableAntiCsrf?: boolean , userContext?: any ) : Promise < SessionContainer > Parameters tenantId: string accessTokenPayload: any = {} sessionDataInDatabase: any = {} disableAntiCsrf: boolean = false userContext: any = {} Static fetch And Set Claimfetch And Set Claim( sessionHandle: string , claim: SessionClaim < any > , userContext?: any ) : Promise < boolean > Parameters sessionHandle: string claim: SessionClaim < any > userContext: any = {} Returns Promise < boolean > Static get All Session Handles For Userget All Session Handles For User( userId: string , fetchSessionsForAllLinkedAccounts?: boolean , tenantId?: string , userContext?: any ) : Promise < string [] > Parameters userId: string fetchSessionsForAllLinkedAccounts: boolean = true Optional tenantId: string userContext: any = {} Returns Promise < string [] > Static get Claim Valueget Claim Value< T > ( sessionHandle: string , claim: SessionClaim < T > , userContext?: any ) : Promise < { status: "SESSION_DOES_NOT_EXIST_ERROR" } | { status: "OK" ; value: undefined | T } > Type parameters Parameters sessionHandle: string claim: SessionClaim < T > userContext: any = {} Returns Promise < { status: "SESSION_DOES_NOT_EXIST_ERROR" } | { status: "OK" ; value: undefined | T } > Static getJWKSgetJWKS( userContext?: any ) : Promise < { keys: JsonWebKey [] } > Static get Open Id Discovery Configurationget Open Id Discovery Configuration( userContext?: any ) : Promise < { issuer: string ; jwks_uri: string ; status: "OK" } > Parameters Returns Promise < { issuer: string ; jwks_uri: string ; status: "OK" } > Static get Sessionget Session( req: any , res: any ) : Promise < SessionContainer > get Session( req: any , res: any , options?: VerifySessionOptions & { sessionRequired?: true } , userContext?: any ) : Promise < SessionContainer > get Session( req: any , res: any , options?: VerifySessionOptions & { sessionRequired: false } , userContext?: any ) : Promise < undefined | SessionContainer > get Session( req: any , res: any , options?: VerifySessionOptions , userContext?: any ) : Promise < undefined | SessionContainer > Parameters Parameters req: any res: any Optional options: VerifySessionOptions & { sessionRequired?: true } Optional userContext: any Parameters req: any res: any Optional options: VerifySessionOptions & { sessionRequired: false } Optional userContext: any Parameters req: any res: any Optional userContext: any Static get Session Informationget Session Information( sessionHandle: string , userContext?: any ) : Promise < undefined | SessionInformation > Parameters sessionHandle: string userContext: any = {} Static get Session Without Request Responseget Session Without Request Response( accessToken: string , antiCsrfToken?: string ) : Promise < SessionContainer > get Session Without Request Response( accessToken: string , antiCsrfToken?: string , options?: VerifySessionOptions & { sessionRequired?: true } , userContext?: any ) : Promise < SessionContainer > get Session Without Request Response( accessToken: string , antiCsrfToken?: string , options?: VerifySessionOptions & { sessionRequired: false } , userContext?: any ) : Promise < undefined | SessionContainer > get Session Without Request Response( accessToken: string , antiCsrfToken?: string , options?: VerifySessionOptions , userContext?: any ) : Promise < undefined | SessionContainer > Parameters accessToken: string Optional antiCsrfToken: string Optional options: VerifySessionOptions & { sessionRequired?: true } Optional userContext: any Parameters accessToken: string Optional antiCsrfToken: string Optional options: VerifySessionOptions & { sessionRequired: false } Optional userContext: any Parameters accessToken: string Optional antiCsrfToken: string Optional userContext: any Static merge Into Access Token Payloadmerge Into Access Token Payload( sessionHandle: string , accessTokenPayloadUpdate: JSONObject , userContext?: any ) : Promise < boolean > Parameters sessionHandle: string accessTokenPayloadUpdate: JSONObject userContext: any = {} Returns Promise < boolean > Static refresh Sessionrefresh Session( req: any , res: any , userContext?: any ) : Promise < SessionContainer > Parameters req: any res: any userContext: any = {} Static refresh Session Without Request Responserefresh Session Without Request Response( refreshToken: string , disableAntiCsrf?: boolean , antiCsrfToken?: string , userContext?: any ) : Promise < SessionContainer > Parameters refreshToken: string disableAntiCsrf: boolean = false Optional antiCsrfToken: string userContext: any = {} Static remove Claimremove Claim( sessionHandle: string , claim: SessionClaim < any > , userContext?: any ) : Promise < boolean > Parameters sessionHandle: string claim: SessionClaim < any > userContext: any = {} Returns Promise < boolean > Static revoke All Sessions For Userrevoke All Sessions For User( userId: string , revokeSessionsForLinkedAccounts?: boolean , tenantId?: string , userContext?: any ) : Promise < string [] > Parameters userId: string revokeSessionsForLinkedAccounts: boolean = true Optional tenantId: string userContext: any = {} Returns Promise < string [] > Static revoke Multiple Sessionsrevoke Multiple Sessions( sessionHandles: string [] , userContext?: any ) : Promise < string [] > Parameters sessionHandles: string [] userContext: any = {} Returns Promise < string [] > Static revoke Sessionrevoke Session( sessionHandle: string , userContext?: any ) : Promise < boolean > Parameters sessionHandle: string userContext: any = {} Returns Promise < boolean > Static set Claim Valueset Claim Value< T > ( sessionHandle: string , claim: SessionClaim < T > , value: T , userContext?: any ) : Promise < boolean > Type parameters Parameters sessionHandle: string claim: SessionClaim < T > value: T userContext: any = {} Returns Promise < boolean > Static update Session Data In Databaseupdate Session Data In Database( sessionHandle: string , newSessionData: any , userContext?: any ) : Promise < boolean > Parameters sessionHandle: string newSessionData: any userContext: any = {} Returns Promise < boolean > Static validate Claims For Session HandleParameters sessionHandle: string userContext: any = {} Returns Promise < { status: "SESSION_DOES_NOT_EXIST_ERROR" } | { invalidClaims: ClaimValidationError [] ; status: "OK" } > Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Static property Static method Settings Theme OS Light Dark
\ No newline at end of file
diff --git a/docs/classes/recipe_thirdparty.default.html b/docs/classes/recipe_thirdparty.default.html
index 2b7594ba5..7372b6a08 100644
--- a/docs/classes/recipe_thirdparty.default.html
+++ b/docs/classes/recipe_thirdparty.default.html
@@ -1 +1 @@
-default | supertokens-node Properties Static ErrorError: typeof default = SuperTokensError
Static initinit: ( config?: TypeInput ) => RecipeListFunction = Recipe.init
Type declaration ( config?: TypeInput ) : RecipeListFunction Parameters Optional config: TypeInput Returns RecipeListFunction Methods Static get Providerget Provider( tenantId: string , thirdPartyId: string , clientType: undefined | string , userContext?: any ) : Promise < undefined | TypeProvider > Parameters tenantId: string thirdPartyId: string clientType: undefined | string userContext: any = {} Returns Promise < undefined | TypeProvider > Static manually Create Or Update Usermanually Create Or Update User( tenantId: string , thirdPartyId: string , thirdPartyUserId: string , email: string , isVerified: boolean , userContext?: any ) : Promise < { createdNewRecipeUser: boolean ; recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" } | { reason: string ; status: "SIGN_IN_UP_NOT_ALLOWED" } > Parameters tenantId: string thirdPartyId: string thirdPartyUserId: string email: string isVerified: boolean userContext: any = {} Returns Promise < { createdNewRecipeUser: boolean ; recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" } | { reason: string ; status: "SIGN_IN_UP_NOT_ALLOWED" } > Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Static property Static method Settings Theme OS Light Dark
\ No newline at end of file
+default | supertokens-node Properties Static ErrorError: typeof default = SuperTokensError
Static initinit: ( config?: TypeInput ) => RecipeListFunction = Recipe.init
Type declaration ( config?: TypeInput ) : RecipeListFunction Parameters Optional config: TypeInput Returns RecipeListFunction Methods Static get Providerget Provider( tenantId: string , thirdPartyId: string , clientType: undefined | string , userContext?: any ) : Promise < undefined | TypeProvider > Parameters tenantId: string thirdPartyId: string clientType: undefined | string userContext: any = {} Returns Promise < undefined | TypeProvider > Static manually Create Or Update Usermanually Create Or Update User( tenantId: string , thirdPartyId: string , thirdPartyUserId: string , email: string , isVerified: boolean , userContext?: any ) : Promise < { createdNewRecipeUser: boolean ; recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" } | { reason: string ; status: "SIGN_IN_UP_NOT_ALLOWED" } > Parameters tenantId: string thirdPartyId: string thirdPartyUserId: string email: string isVerified: boolean userContext: any = {} Returns Promise < { createdNewRecipeUser: boolean ; recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" } | { reason: string ; status: "SIGN_IN_UP_NOT_ALLOWED" } > Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Static property Static method Settings Theme OS Light Dark
\ No newline at end of file
diff --git a/docs/classes/recipe_thirdpartyemailpassword.default.html b/docs/classes/recipe_thirdpartyemailpassword.default.html
index c219b9cde..17ac07f5d 100644
--- a/docs/classes/recipe_thirdpartyemailpassword.default.html
+++ b/docs/classes/recipe_thirdpartyemailpassword.default.html
@@ -1 +1 @@
-default | supertokens-node Properties Static ErrorError: typeof default = SuperTokensError
Static initinit: ( config?: TypeInput ) => RecipeListFunction = Recipe.init
Type declaration ( config?: TypeInput ) : RecipeListFunction Parameters Optional config: TypeInput Returns RecipeListFunction Methods Static consume Password Reset Tokenconsume Password Reset Token( tenantId: string , token: string , userContext?: any ) : Promise < { email: string ; status: "OK" ; userId: string } | { status: "RESET_PASSWORD_INVALID_TOKEN_ERROR" } > Parameters tenantId: string token: string userContext: any = {} Returns Promise < { email: string ; status: "OK" ; userId: string } | { status: "RESET_PASSWORD_INVALID_TOKEN_ERROR" } > Static create Reset Password Linkcreate Reset Password Link( tenantId: string , userId: string , email: string , userContext?: any ) : Promise < { link: string ; status: "OK" } | { status: "UNKNOWN_USER_ID_ERROR" } > Parameters tenantId: string userId: string email: string userContext: any = {} Returns Promise < { link: string ; status: "OK" } | { status: "UNKNOWN_USER_ID_ERROR" } > Static create Reset Password Tokencreate Reset Password Token( tenantId: string , userId: string , email: string , userContext?: any ) : Promise < { status: "OK" ; token: string } | { status: "UNKNOWN_USER_ID_ERROR" } > Parameters tenantId: string userId: string email: string userContext: any = {} Returns Promise < { status: "OK" ; token: string } | { status: "UNKNOWN_USER_ID_ERROR" } > Static email Password Sign Inemail Password Sign In( tenantId: string , email: string , password: string , userContext?: any ) : Promise < { recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { status: "WRONG_CREDENTIALS_ERROR" } > Parameters tenantId: string email: string password: string userContext: any = {} Returns Promise < { recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { status: "WRONG_CREDENTIALS_ERROR" } > Static email Password Sign Upemail Password Sign Up( tenantId: string , email: string , password: string , userContext?: any ) : Promise < { recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { status: "EMAIL_ALREADY_EXISTS_ERROR" } > Parameters tenantId: string email: string password: string userContext: any = {} Returns Promise < { recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { status: "EMAIL_ALREADY_EXISTS_ERROR" } > Static reset Password Using Tokenreset Password Using Token( tenantId: string , token: string , newPassword: string , userContext?: any ) : Promise < { status: "RESET_PASSWORD_INVALID_TOKEN_ERROR" } | { status: "OK" | "EMAIL_ALREADY_EXISTS_ERROR" | "UNKNOWN_USER_ID_ERROR" } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" } | { failureReason: string ; status: "PASSWORD_POLICY_VIOLATED_ERROR" } > Parameters tenantId: string token: string newPassword: string Optional userContext: any Returns Promise < { status: "RESET_PASSWORD_INVALID_TOKEN_ERROR" } | { status: "OK" | "EMAIL_ALREADY_EXISTS_ERROR" | "UNKNOWN_USER_ID_ERROR" } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" } | { failureReason: string ; status: "PASSWORD_POLICY_VIOLATED_ERROR" } > Static send Emailsend Email( input: TypeEmailPasswordPasswordResetEmailDeliveryInput & { userContext?: any } ) : Promise < void > Parameters input: TypeEmailPasswordPasswordResetEmailDeliveryInput & { userContext?: any } Returns Promise < void > Static send Reset Password Emailsend Reset Password Email( tenantId: string , userId: string , email: string , userContext?: any ) : Promise < { status: "OK" | "UNKNOWN_USER_ID_ERROR" } > Parameters tenantId: string userId: string email: string userContext: any = {} Returns Promise < { status: "OK" | "UNKNOWN_USER_ID_ERROR" } > Static third Party Get Providerthird Party Get Provider( tenantId: string , thirdPartyId: string , clientType: undefined | string , userContext?: any ) : Promise < undefined | TypeProvider > Parameters tenantId: string thirdPartyId: string clientType: undefined | string userContext: any = {} Returns Promise < undefined | TypeProvider > Static third Party Manually Create Or Update Userthird Party Manually Create Or Update User( tenantId: string , thirdPartyId: string , thirdPartyUserId: string , email: string , isVerified: boolean , userContext?: any ) : Promise < { createdNewRecipeUser: boolean ; recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" } | { reason: string ; status: "SIGN_IN_UP_NOT_ALLOWED" } > Parameters tenantId: string thirdPartyId: string thirdPartyUserId: string email: string isVerified: boolean userContext: any = {} Returns Promise < { createdNewRecipeUser: boolean ; recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" } | { reason: string ; status: "SIGN_IN_UP_NOT_ALLOWED" } > Static update Email Or Passwordupdate Email Or Password( input: { applyPasswordPolicy?: boolean ; email?: string ; password?: string ; recipeUserId: RecipeUserId ; tenantIdForPasswordPolicy?: string ; userContext?: any } ) : Promise < { status: "OK" | "EMAIL_ALREADY_EXISTS_ERROR" | "UNKNOWN_USER_ID_ERROR" } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" } | { failureReason: string ; status: "PASSWORD_POLICY_VIOLATED_ERROR" } > Parameters input: { applyPasswordPolicy?: boolean ; email?: string ; password?: string ; recipeUserId: RecipeUserId ; tenantIdForPasswordPolicy?: string ; userContext?: any } Optional apply Password Policy?: boolean Optional email?: string Optional password?: string Optional tenant Id For Password Policy?: string Optional user Context?: any Returns Promise < { status: "OK" | "EMAIL_ALREADY_EXISTS_ERROR" | "UNKNOWN_USER_ID_ERROR" } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" } | { failureReason: string ; status: "PASSWORD_POLICY_VIOLATED_ERROR" } > Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Static property Static method Settings Theme OS Light Dark
\ No newline at end of file
+default | supertokens-node Properties Static ErrorError: typeof default = SuperTokensError
Static initinit: ( config?: TypeInput ) => RecipeListFunction = Recipe.init
Type declaration ( config?: TypeInput ) : RecipeListFunction Parameters Optional config: TypeInput Returns RecipeListFunction Methods Static consume Password Reset Tokenconsume Password Reset Token( tenantId: string , token: string , userContext?: any ) : Promise < { email: string ; status: "OK" ; userId: string } | { status: "RESET_PASSWORD_INVALID_TOKEN_ERROR" } > Parameters tenantId: string token: string userContext: any = {} Returns Promise < { email: string ; status: "OK" ; userId: string } | { status: "RESET_PASSWORD_INVALID_TOKEN_ERROR" } > Static create Reset Password Linkcreate Reset Password Link( tenantId: string , userId: string , email: string , userContext?: any ) : Promise < { link: string ; status: "OK" } | { status: "UNKNOWN_USER_ID_ERROR" } > Parameters tenantId: string userId: string email: string userContext: any = {} Returns Promise < { link: string ; status: "OK" } | { status: "UNKNOWN_USER_ID_ERROR" } > Static create Reset Password Tokencreate Reset Password Token( tenantId: string , userId: string , email: string , userContext?: any ) : Promise < { status: "OK" ; token: string } | { status: "UNKNOWN_USER_ID_ERROR" } > Parameters tenantId: string userId: string email: string userContext: any = {} Returns Promise < { status: "OK" ; token: string } | { status: "UNKNOWN_USER_ID_ERROR" } > Static email Password Sign Inemail Password Sign In( tenantId: string , email: string , password: string , userContext?: any ) : Promise < { recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { status: "WRONG_CREDENTIALS_ERROR" } > Parameters tenantId: string email: string password: string userContext: any = {} Returns Promise < { recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { status: "WRONG_CREDENTIALS_ERROR" } > Static email Password Sign Upemail Password Sign Up( tenantId: string , email: string , password: string , userContext?: any ) : Promise < { recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { status: "EMAIL_ALREADY_EXISTS_ERROR" } > Parameters tenantId: string email: string password: string userContext: any = {} Returns Promise < { recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { status: "EMAIL_ALREADY_EXISTS_ERROR" } > Static reset Password Using Tokenreset Password Using Token( tenantId: string , token: string , newPassword: string , userContext?: any ) : Promise < { status: "RESET_PASSWORD_INVALID_TOKEN_ERROR" } | { status: "OK" | "EMAIL_ALREADY_EXISTS_ERROR" | "UNKNOWN_USER_ID_ERROR" } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" } | { failureReason: string ; status: "PASSWORD_POLICY_VIOLATED_ERROR" } > Parameters tenantId: string token: string newPassword: string Optional userContext: any Returns Promise < { status: "RESET_PASSWORD_INVALID_TOKEN_ERROR" } | { status: "OK" | "EMAIL_ALREADY_EXISTS_ERROR" | "UNKNOWN_USER_ID_ERROR" } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" } | { failureReason: string ; status: "PASSWORD_POLICY_VIOLATED_ERROR" } > Static send Emailsend Email( input: TypeEmailPasswordPasswordResetEmailDeliveryInput & { userContext?: any } ) : Promise < void > Parameters input: TypeEmailPasswordPasswordResetEmailDeliveryInput & { userContext?: any } Returns Promise < void > Static send Reset Password Emailsend Reset Password Email( tenantId: string , userId: string , email: string , userContext?: any ) : Promise < { status: "OK" | "UNKNOWN_USER_ID_ERROR" } > Parameters tenantId: string userId: string email: string userContext: any = {} Returns Promise < { status: "OK" | "UNKNOWN_USER_ID_ERROR" } > Static third Party Get Providerthird Party Get Provider( tenantId: string , thirdPartyId: string , clientType: undefined | string , userContext?: any ) : Promise < undefined | TypeProvider > Parameters tenantId: string thirdPartyId: string clientType: undefined | string userContext: any = {} Returns Promise < undefined | TypeProvider > Static third Party Manually Create Or Update Userthird Party Manually Create Or Update User( tenantId: string , thirdPartyId: string , thirdPartyUserId: string , email: string , isVerified: boolean , userContext?: any ) : Promise < { createdNewRecipeUser: boolean ; recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" } | { reason: string ; status: "SIGN_IN_UP_NOT_ALLOWED" } > Parameters tenantId: string thirdPartyId: string thirdPartyUserId: string email: string isVerified: boolean userContext: any = {} Returns Promise < { createdNewRecipeUser: boolean ; recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" } | { reason: string ; status: "SIGN_IN_UP_NOT_ALLOWED" } > Static update Email Or Passwordupdate Email Or Password( input: { applyPasswordPolicy?: boolean ; email?: string ; password?: string ; recipeUserId: RecipeUserId ; tenantIdForPasswordPolicy?: string ; userContext?: any } ) : Promise < { status: "OK" | "EMAIL_ALREADY_EXISTS_ERROR" | "UNKNOWN_USER_ID_ERROR" } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" } | { failureReason: string ; status: "PASSWORD_POLICY_VIOLATED_ERROR" } > Parameters input: { applyPasswordPolicy?: boolean ; email?: string ; password?: string ; recipeUserId: RecipeUserId ; tenantIdForPasswordPolicy?: string ; userContext?: any } Optional apply Password Policy?: boolean Optional email?: string Optional password?: string Optional tenant Id For Password Policy?: string Optional user Context?: any Returns Promise < { status: "OK" | "EMAIL_ALREADY_EXISTS_ERROR" | "UNKNOWN_USER_ID_ERROR" } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" } | { failureReason: string ; status: "PASSWORD_POLICY_VIOLATED_ERROR" } > Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Static property Static method Settings Theme OS Light Dark
\ No newline at end of file
diff --git a/docs/classes/recipe_thirdpartypasswordless.default.html b/docs/classes/recipe_thirdpartypasswordless.default.html
index 232378870..eae60a859 100644
--- a/docs/classes/recipe_thirdpartypasswordless.default.html
+++ b/docs/classes/recipe_thirdpartypasswordless.default.html
@@ -1 +1 @@
-default | supertokens-node Properties Static ErrorError: typeof default = SuperTokensError
Static initinit: ( config: TypeInput ) => RecipeListFunction = Recipe.init
Type declaration ( config: TypeInput ) : RecipeListFunction Parameters Returns RecipeListFunction Methods Static consume Codeconsume Code( input: { deviceId: string ; preAuthSessionId: string ; tenantId: string ; userContext?: any ; userInputCode: string } | { linkCode: string ; preAuthSessionId: string ; tenantId: string ; userContext?: any } ) : Promise < { createdNewRecipeUser: boolean ; recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { failedCodeInputAttemptCount: number ; maximumCodeInputAttempts: number ; status: "INCORRECT_USER_INPUT_CODE_ERROR" | "EXPIRED_USER_INPUT_CODE_ERROR" } | { status: "RESTART_FLOW_ERROR" } > Parameters input: { deviceId: string ; preAuthSessionId: string ; tenantId: string ; userContext?: any ; userInputCode: string } | { linkCode: string ; preAuthSessionId: string ; tenantId: string ; userContext?: any } Returns Promise < { createdNewRecipeUser: boolean ; recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { failedCodeInputAttemptCount: number ; maximumCodeInputAttempts: number ; status: "INCORRECT_USER_INPUT_CODE_ERROR" | "EXPIRED_USER_INPUT_CODE_ERROR" } | { status: "RESTART_FLOW_ERROR" } > Static create Codecreate Code( input: ( { email: string } & { tenantId: string ; userContext?: any ; userInputCode?: string } ) & ( { phoneNumber: string } & { tenantId: string ; userContext?: any ; userInputCode?: string } ) ) : Promise < { codeId: string ; codeLifetime: number ; deviceId: string ; linkCode: string ; preAuthSessionId: string ; status: "OK" ; timeCreated: number ; userInputCode: string } > Parameters input: ( { email: string } & { tenantId: string ; userContext?: any ; userInputCode?: string } ) & ( { phoneNumber: string } & { tenantId: string ; userContext?: any ; userInputCode?: string } ) Returns Promise < { codeId: string ; codeLifetime: number ; deviceId: string ; linkCode: string ; preAuthSessionId: string ; status: "OK" ; timeCreated: number ; userInputCode: string } > Static create Magic Linkcreate Magic Link( input: { email: string ; tenantId: string ; userContext?: any } | { phoneNumber: string ; tenantId: string ; userContext?: any } ) : Promise < string > Parameters input: { email: string ; tenantId: string ; userContext?: any } | { phoneNumber: string ; tenantId: string ; userContext?: any } Returns Promise < string > Static create New Code For Devicecreate New Code For Device( input: { deviceId: string ; tenantId: string ; userContext?: any ; userInputCode?: string } ) : Promise < { codeId: string ; codeLifetime: number ; deviceId: string ; linkCode: string ; preAuthSessionId: string ; status: "OK" ; timeCreated: number ; userInputCode: string } | { status: "RESTART_FLOW_ERROR" | "USER_INPUT_CODE_ALREADY_USED_ERROR" } > Parameters input: { deviceId: string ; tenantId: string ; userContext?: any ; userInputCode?: string } device Id: string tenant Id: string Optional user Context?: any Optional user Input Code?: string Returns Promise < { codeId: string ; codeLifetime: number ; deviceId: string ; linkCode: string ; preAuthSessionId: string ; status: "OK" ; timeCreated: number ; userInputCode: string } | { status: "RESTART_FLOW_ERROR" | "USER_INPUT_CODE_ALREADY_USED_ERROR" } > Static list Codes By Device Idlist Codes By Device Id( input: { deviceId: string ; tenantId: string ; userContext?: any } ) : Promise < undefined | DeviceType > Parameters input: { deviceId: string ; tenantId: string ; userContext?: any } device Id: string tenant Id: string Optional user Context?: any Returns Promise < undefined | DeviceType > Static list Codes By Emaillist Codes By Email( input: { email: string ; tenantId: string ; userContext?: any } ) : Promise < DeviceType [] > Parameters input: { email: string ; tenantId: string ; userContext?: any } email: string tenant Id: string Optional user Context?: any Returns Promise < DeviceType [] > Static list Codes By Phone Numberlist Codes By Phone Number( input: { phoneNumber: string ; tenantId: string ; userContext?: any } ) : Promise < DeviceType [] > Parameters input: { phoneNumber: string ; tenantId: string ; userContext?: any } phone Number: string tenant Id: string Optional user Context?: any Returns Promise < DeviceType [] > Static list Codes By Pre Auth Session Idlist Codes By Pre Auth Session Id( input: { preAuthSessionId: string ; tenantId: string ; userContext?: any } ) : Promise < undefined | DeviceType > Parameters input: { preAuthSessionId: string ; tenantId: string ; userContext?: any } pre Auth Session Id: string tenant Id: string Optional user Context?: any Returns Promise < undefined | DeviceType > Static passwordless Sign In Uppasswordless Sign In Up( input: { email: string ; tenantId: string ; userContext?: any } | { phoneNumber: string ; tenantId: string ; userContext?: any } ) : Promise < { createdNewRecipeUser: boolean ; recipeUserId: RecipeUserId ; status: string ; user: User } > Parameters input: { email: string ; tenantId: string ; userContext?: any } | { phoneNumber: string ; tenantId: string ; userContext?: any } Returns Promise < { createdNewRecipeUser: boolean ; recipeUserId: RecipeUserId ; status: string ; user: User } > Static revoke All Codesrevoke All Codes( input: { email: string ; tenantId: string ; userContext?: any } | { phoneNumber: string ; tenantId: string ; userContext?: any } ) : Promise < { status: "OK" } > Parameters input: { email: string ; tenantId: string ; userContext?: any } | { phoneNumber: string ; tenantId: string ; userContext?: any } Returns Promise < { status: "OK" } > Static revoke Coderevoke Code( input: { codeId: string ; tenantId: string ; userContext?: any } ) : Promise < { status: "OK" } > Parameters input: { codeId: string ; tenantId: string ; userContext?: any } code Id: string tenant Id: string Optional user Context?: any Returns Promise < { status: "OK" } > Static send Emailsend Email( input: TypePasswordlessEmailDeliveryInput & { userContext?: any } ) : Promise < void > Parameters input: TypePasswordlessEmailDeliveryInput & { userContext?: any } Returns Promise < void > Static send Smssend Sms( input: TypePasswordlessSmsDeliveryInput & { userContext?: any } ) : Promise < void > Parameters input: TypePasswordlessSmsDeliveryInput & { userContext?: any } Returns Promise < void > Static third Party Get Providerthird Party Get Provider( tenantId: string , thirdPartyId: string , clientType: undefined | string , userContext?: any ) : Promise < undefined | TypeProvider > Parameters tenantId: string thirdPartyId: string clientType: undefined | string userContext: any = {} Returns Promise < undefined | TypeProvider > Static third Party Manually Create Or Update Userthird Party Manually Create Or Update User( tenantId: string , thirdPartyId: string , thirdPartyUserId: string , email: string , isVerified: boolean , userContext?: any ) : Promise < { createdNewRecipeUser: boolean ; recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" } | { reason: string ; status: "SIGN_IN_UP_NOT_ALLOWED" } > Parameters tenantId: string thirdPartyId: string thirdPartyUserId: string email: string isVerified: boolean userContext: any = {} Returns Promise < { createdNewRecipeUser: boolean ; recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" } | { reason: string ; status: "SIGN_IN_UP_NOT_ALLOWED" } > Static update Passwordless Userupdate Passwordless User( input: { email?: null | string ; phoneNumber?: null | string ; recipeUserId: RecipeUserId ; userContext?: any } ) : Promise < { status: "OK" | "EMAIL_ALREADY_EXISTS_ERROR" | "UNKNOWN_USER_ID_ERROR" | "PHONE_NUMBER_ALREADY_EXISTS_ERROR" } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" | "PHONE_NUMBER_CHANGE_NOT_ALLOWED_ERROR" } > Parameters input: { email?: null | string ; phoneNumber?: null | string ; recipeUserId: RecipeUserId ; userContext?: any } Optional email?: null | string Optional phone Number?: null | string Optional user Context?: any Returns Promise < { status: "OK" | "EMAIL_ALREADY_EXISTS_ERROR" | "UNKNOWN_USER_ID_ERROR" | "PHONE_NUMBER_ALREADY_EXISTS_ERROR" } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" | "PHONE_NUMBER_CHANGE_NOT_ALLOWED_ERROR" } > Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Static property Static method Settings Theme OS Light Dark
\ No newline at end of file
+default | supertokens-node Properties Static ErrorError: typeof default = SuperTokensError
Static initinit: ( config: TypeInput ) => RecipeListFunction = Recipe.init
Type declaration ( config: TypeInput ) : RecipeListFunction Parameters Returns RecipeListFunction Methods Static consume Codeconsume Code( input: { deviceId: string ; preAuthSessionId: string ; tenantId: string ; userContext?: any ; userInputCode: string } | { linkCode: string ; preAuthSessionId: string ; tenantId: string ; userContext?: any } ) : Promise < { createdNewRecipeUser: boolean ; recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { failedCodeInputAttemptCount: number ; maximumCodeInputAttempts: number ; status: "INCORRECT_USER_INPUT_CODE_ERROR" | "EXPIRED_USER_INPUT_CODE_ERROR" } | { status: "RESTART_FLOW_ERROR" } > Parameters input: { deviceId: string ; preAuthSessionId: string ; tenantId: string ; userContext?: any ; userInputCode: string } | { linkCode: string ; preAuthSessionId: string ; tenantId: string ; userContext?: any } Returns Promise < { createdNewRecipeUser: boolean ; recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { failedCodeInputAttemptCount: number ; maximumCodeInputAttempts: number ; status: "INCORRECT_USER_INPUT_CODE_ERROR" | "EXPIRED_USER_INPUT_CODE_ERROR" } | { status: "RESTART_FLOW_ERROR" } > Static create Codecreate Code( input: ( { email: string } & { tenantId: string ; userContext?: any ; userInputCode?: string } ) & ( { phoneNumber: string } & { tenantId: string ; userContext?: any ; userInputCode?: string } ) ) : Promise < { codeId: string ; codeLifetime: number ; deviceId: string ; linkCode: string ; preAuthSessionId: string ; status: "OK" ; timeCreated: number ; userInputCode: string } > Parameters input: ( { email: string } & { tenantId: string ; userContext?: any ; userInputCode?: string } ) & ( { phoneNumber: string } & { tenantId: string ; userContext?: any ; userInputCode?: string } ) Returns Promise < { codeId: string ; codeLifetime: number ; deviceId: string ; linkCode: string ; preAuthSessionId: string ; status: "OK" ; timeCreated: number ; userInputCode: string } > Static create Magic Linkcreate Magic Link( input: { email: string ; tenantId: string ; userContext?: any } | { phoneNumber: string ; tenantId: string ; userContext?: any } ) : Promise < string > Parameters input: { email: string ; tenantId: string ; userContext?: any } | { phoneNumber: string ; tenantId: string ; userContext?: any } Returns Promise < string > Static create New Code For Devicecreate New Code For Device( input: { deviceId: string ; tenantId: string ; userContext?: any ; userInputCode?: string } ) : Promise < { codeId: string ; codeLifetime: number ; deviceId: string ; linkCode: string ; preAuthSessionId: string ; status: "OK" ; timeCreated: number ; userInputCode: string } | { status: "RESTART_FLOW_ERROR" | "USER_INPUT_CODE_ALREADY_USED_ERROR" } > Parameters input: { deviceId: string ; tenantId: string ; userContext?: any ; userInputCode?: string } device Id: string tenant Id: string Optional user Context?: any Optional user Input Code?: string Returns Promise < { codeId: string ; codeLifetime: number ; deviceId: string ; linkCode: string ; preAuthSessionId: string ; status: "OK" ; timeCreated: number ; userInputCode: string } | { status: "RESTART_FLOW_ERROR" | "USER_INPUT_CODE_ALREADY_USED_ERROR" } > Static list Codes By Device Idlist Codes By Device Id( input: { deviceId: string ; tenantId: string ; userContext?: any } ) : Promise < undefined | DeviceType > Parameters input: { deviceId: string ; tenantId: string ; userContext?: any } device Id: string tenant Id: string Optional user Context?: any Returns Promise < undefined | DeviceType > Static list Codes By Emaillist Codes By Email( input: { email: string ; tenantId: string ; userContext?: any } ) : Promise < DeviceType [] > Parameters input: { email: string ; tenantId: string ; userContext?: any } email: string tenant Id: string Optional user Context?: any Returns Promise < DeviceType [] > Static list Codes By Phone Numberlist Codes By Phone Number( input: { phoneNumber: string ; tenantId: string ; userContext?: any } ) : Promise < DeviceType [] > Parameters input: { phoneNumber: string ; tenantId: string ; userContext?: any } phone Number: string tenant Id: string Optional user Context?: any Returns Promise < DeviceType [] > Static list Codes By Pre Auth Session Idlist Codes By Pre Auth Session Id( input: { preAuthSessionId: string ; tenantId: string ; userContext?: any } ) : Promise < undefined | DeviceType > Parameters input: { preAuthSessionId: string ; tenantId: string ; userContext?: any } pre Auth Session Id: string tenant Id: string Optional user Context?: any Returns Promise < undefined | DeviceType > Static passwordless Sign In Uppasswordless Sign In Up( input: { email: string ; tenantId: string ; userContext?: any } | { phoneNumber: string ; tenantId: string ; userContext?: any } ) : Promise < { createdNewRecipeUser: boolean ; recipeUserId: RecipeUserId ; status: string ; user: User } > Parameters input: { email: string ; tenantId: string ; userContext?: any } | { phoneNumber: string ; tenantId: string ; userContext?: any } Returns Promise < { createdNewRecipeUser: boolean ; recipeUserId: RecipeUserId ; status: string ; user: User } > Static revoke All Codesrevoke All Codes( input: { email: string ; tenantId: string ; userContext?: any } | { phoneNumber: string ; tenantId: string ; userContext?: any } ) : Promise < { status: "OK" } > Parameters input: { email: string ; tenantId: string ; userContext?: any } | { phoneNumber: string ; tenantId: string ; userContext?: any } Returns Promise < { status: "OK" } > Static revoke Coderevoke Code( input: { codeId: string ; tenantId: string ; userContext?: any } ) : Promise < { status: "OK" } > Parameters input: { codeId: string ; tenantId: string ; userContext?: any } code Id: string tenant Id: string Optional user Context?: any Returns Promise < { status: "OK" } > Static send Emailsend Email( input: TypePasswordlessEmailDeliveryInput & { userContext?: any } ) : Promise < void > Parameters input: TypePasswordlessEmailDeliveryInput & { userContext?: any } Returns Promise < void > Static send Smssend Sms( input: TypePasswordlessSmsDeliveryInput & { userContext?: any } ) : Promise < void > Parameters input: TypePasswordlessSmsDeliveryInput & { userContext?: any } Returns Promise < void > Static third Party Get Providerthird Party Get Provider( tenantId: string , thirdPartyId: string , clientType: undefined | string , userContext?: any ) : Promise < undefined | TypeProvider > Parameters tenantId: string thirdPartyId: string clientType: undefined | string userContext: any = {} Returns Promise < undefined | TypeProvider > Static third Party Manually Create Or Update Userthird Party Manually Create Or Update User( tenantId: string , thirdPartyId: string , thirdPartyUserId: string , email: string , isVerified: boolean , userContext?: any ) : Promise < { createdNewRecipeUser: boolean ; recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" } | { reason: string ; status: "SIGN_IN_UP_NOT_ALLOWED" } > Parameters tenantId: string thirdPartyId: string thirdPartyUserId: string email: string isVerified: boolean userContext: any = {} Returns Promise < { createdNewRecipeUser: boolean ; recipeUserId: RecipeUserId ; status: "OK" ; user: User } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" } | { reason: string ; status: "SIGN_IN_UP_NOT_ALLOWED" } > Static update Passwordless Userupdate Passwordless User( input: { email?: null | string ; phoneNumber?: null | string ; recipeUserId: RecipeUserId ; userContext?: any } ) : Promise < { status: "OK" | "EMAIL_ALREADY_EXISTS_ERROR" | "UNKNOWN_USER_ID_ERROR" | "PHONE_NUMBER_ALREADY_EXISTS_ERROR" } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" | "PHONE_NUMBER_CHANGE_NOT_ALLOWED_ERROR" } > Parameters input: { email?: null | string ; phoneNumber?: null | string ; recipeUserId: RecipeUserId ; userContext?: any } Optional email?: null | string Optional phone Number?: null | string Optional user Context?: any Returns Promise < { status: "OK" | "EMAIL_ALREADY_EXISTS_ERROR" | "UNKNOWN_USER_ID_ERROR" | "PHONE_NUMBER_ALREADY_EXISTS_ERROR" } | { reason: string ; status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" | "PHONE_NUMBER_CHANGE_NOT_ALLOWED_ERROR" } > Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Static property Static method Settings Theme OS Light Dark
\ No newline at end of file
diff --git a/docs/classes/recipe_usermetadata.default.html b/docs/classes/recipe_usermetadata.default.html
index cc3e21f4d..23fe489fc 100644
--- a/docs/classes/recipe_usermetadata.default.html
+++ b/docs/classes/recipe_usermetadata.default.html
@@ -1 +1 @@
-default | supertokens-node Properties Static initinit: ( config?: TypeInput ) => RecipeListFunction = Recipe.init
Type declaration ( config?: TypeInput ) : RecipeListFunction Parameters Optional config: TypeInput Returns RecipeListFunction Methods Static clear User Metadataclear User Metadata( userId: string , userContext?: any ) : Promise < { status: "OK" } > Parameters userId: string Optional userContext: any Returns Promise < { status: "OK" } > Static get User Metadataget User Metadata( userId: string , userContext?: any ) : Promise < { metadata: any ; status: "OK" } > Parameters userId: string Optional userContext: any Returns Promise < { metadata: any ; status: "OK" } > Static update User Metadataupdate User Metadata( userId: string , metadataUpdate: JSONObject , userContext?: any ) : Promise < { metadata: JSONObject ; status: "OK" } > Parameters userId: string Optional userContext: any Returns Promise < { metadata: JSONObject ; status: "OK" } > Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Static property Static method Settings Theme OS Light Dark
\ No newline at end of file
+default | supertokens-node Properties Static initinit: ( config?: TypeInput ) => RecipeListFunction = Recipe.init
Type declaration ( config?: TypeInput ) : RecipeListFunction Parameters Optional config: TypeInput Returns RecipeListFunction Methods Static clear User Metadataclear User Metadata( userId: string , userContext?: any ) : Promise < { status: "OK" } > Parameters userId: string Optional userContext: any Returns Promise < { status: "OK" } > Static get User Metadataget User Metadata( userId: string , userContext?: any ) : Promise < { metadata: any ; status: "OK" } > Parameters userId: string Optional userContext: any Returns Promise < { metadata: any ; status: "OK" } > Static update User Metadataupdate User Metadata( userId: string , metadataUpdate: JSONObject , userContext?: any ) : Promise < { metadata: JSONObject ; status: "OK" } > Parameters userId: string Optional userContext: any Returns Promise < { metadata: JSONObject ; status: "OK" } > Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Static property Static method Settings Theme OS Light Dark
\ No newline at end of file
diff --git a/docs/classes/recipe_userroles.default.html b/docs/classes/recipe_userroles.default.html
index 1e9577636..cd3ddf9ea 100644
--- a/docs/classes/recipe_userroles.default.html
+++ b/docs/classes/recipe_userroles.default.html
@@ -1 +1 @@
-default | supertokens-node Properties Static Permission ClaimPermission Claim: PermissionClaimClass = PermissionClaim
Static User Role ClaimUser Role Claim: UserRoleClaimClass = UserRoleClaim
Static initinit: ( config?: TypeInput ) => RecipeListFunction = Recipe.init
Type declaration ( config?: TypeInput ) : RecipeListFunction Parameters Optional config: TypeInput Returns RecipeListFunction Methods Static add Role To Useradd Role To User( tenantId: string , userId: string , role: string , userContext?: any ) : Promise < { didUserAlreadyHaveRole: boolean ; status: "OK" } | { status: "UNKNOWN_ROLE_ERROR" } > Parameters tenantId: string userId: string role: string Optional userContext: any Returns Promise < { didUserAlreadyHaveRole: boolean ; status: "OK" } | { status: "UNKNOWN_ROLE_ERROR" } > Static create New Role Or Add Permissionscreate New Role Or Add Permissions( role: string , permissions: string [] , userContext?: any ) : Promise < { createdNewRole: boolean ; status: "OK" } > Parameters role: string permissions: string [] Optional userContext: any Returns Promise < { createdNewRole: boolean ; status: "OK" } > Static delete Roledelete Role( role: string , userContext?: any ) : Promise < { didRoleExist: boolean ; status: "OK" } > Parameters role: string Optional userContext: any Returns Promise < { didRoleExist: boolean ; status: "OK" } > Static get All Rolesget All Roles( userContext?: any ) : Promise < { roles: string [] ; status: "OK" } > Parameters Optional userContext: any Returns Promise < { roles: string [] ; status: "OK" } > Static get Permissions For Roleget Permissions For Role( role: string , userContext?: any ) : Promise < { permissions: string [] ; status: "OK" } | { status: "UNKNOWN_ROLE_ERROR" } > Parameters role: string Optional userContext: any Returns Promise < { permissions: string [] ; status: "OK" } | { status: "UNKNOWN_ROLE_ERROR" } > Static get Roles For Userget Roles For User( tenantId: string , userId: string , userContext?: any ) : Promise < { roles: string [] ; status: "OK" } > Parameters tenantId: string userId: string Optional userContext: any Returns Promise < { roles: string [] ; status: "OK" } > Static get Roles That Have Permissionget Roles That Have Permission( permission: string , userContext?: any ) : Promise < { roles: string [] ; status: "OK" } > Parameters permission: string Optional userContext: any Returns Promise < { roles: string [] ; status: "OK" } > Static get Users That Have Roleget Users That Have Role( tenantId: string , role: string , userContext?: any ) : Promise < { status: "OK" ; users: string [] } | { status: "UNKNOWN_ROLE_ERROR" } > Parameters tenantId: string role: string Optional userContext: any Returns Promise < { status: "OK" ; users: string [] } | { status: "UNKNOWN_ROLE_ERROR" } > Static remove Permissions From Roleremove Permissions From Role( role: string , permissions: string [] , userContext?: any ) : Promise < { status: "OK" | "UNKNOWN_ROLE_ERROR" } > Parameters role: string permissions: string [] Optional userContext: any Returns Promise < { status: "OK" | "UNKNOWN_ROLE_ERROR" } > Static remove User Roleremove User Role( tenantId: string , userId: string , role: string , userContext?: any ) : Promise < { didUserHaveRole: boolean ; status: "OK" } | { status: "UNKNOWN_ROLE_ERROR" } > Parameters tenantId: string userId: string role: string Optional userContext: any Returns Promise < { didUserHaveRole: boolean ; status: "OK" } | { status: "UNKNOWN_ROLE_ERROR" } > Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Static property Static method Settings Theme OS Light Dark
\ No newline at end of file
+default | supertokens-node Properties Static Permission ClaimPermission Claim: PermissionClaimClass = PermissionClaim
Static User Role ClaimUser Role Claim: UserRoleClaimClass = UserRoleClaim
Static initinit: ( config?: TypeInput ) => RecipeListFunction = Recipe.init
Type declaration ( config?: TypeInput ) : RecipeListFunction Parameters Optional config: TypeInput Returns RecipeListFunction Methods Static add Role To Useradd Role To User( tenantId: string , userId: string , role: string , userContext?: any ) : Promise < { didUserAlreadyHaveRole: boolean ; status: "OK" } | { status: "UNKNOWN_ROLE_ERROR" } > Parameters tenantId: string userId: string role: string Optional userContext: any Returns Promise < { didUserAlreadyHaveRole: boolean ; status: "OK" } | { status: "UNKNOWN_ROLE_ERROR" } > Static create New Role Or Add Permissionscreate New Role Or Add Permissions( role: string , permissions: string [] , userContext?: any ) : Promise < { createdNewRole: boolean ; status: "OK" } > Parameters role: string permissions: string [] Optional userContext: any Returns Promise < { createdNewRole: boolean ; status: "OK" } > Static delete Roledelete Role( role: string , userContext?: any ) : Promise < { didRoleExist: boolean ; status: "OK" } > Parameters role: string Optional userContext: any Returns Promise < { didRoleExist: boolean ; status: "OK" } > Static get All Rolesget All Roles( userContext?: any ) : Promise < { roles: string [] ; status: "OK" } > Parameters Optional userContext: any Returns Promise < { roles: string [] ; status: "OK" } > Static get Permissions For Roleget Permissions For Role( role: string , userContext?: any ) : Promise < { permissions: string [] ; status: "OK" } | { status: "UNKNOWN_ROLE_ERROR" } > Parameters role: string Optional userContext: any Returns Promise < { permissions: string [] ; status: "OK" } | { status: "UNKNOWN_ROLE_ERROR" } > Static get Roles For Userget Roles For User( tenantId: string , userId: string , userContext?: any ) : Promise < { roles: string [] ; status: "OK" } > Parameters tenantId: string userId: string Optional userContext: any Returns Promise < { roles: string [] ; status: "OK" } > Static get Roles That Have Permissionget Roles That Have Permission( permission: string , userContext?: any ) : Promise < { roles: string [] ; status: "OK" } > Parameters permission: string Optional userContext: any Returns Promise < { roles: string [] ; status: "OK" } > Static get Users That Have Roleget Users That Have Role( tenantId: string , role: string , userContext?: any ) : Promise < { status: "OK" ; users: string [] } | { status: "UNKNOWN_ROLE_ERROR" } > Parameters tenantId: string role: string Optional userContext: any Returns Promise < { status: "OK" ; users: string [] } | { status: "UNKNOWN_ROLE_ERROR" } > Static remove Permissions From Roleremove Permissions From Role( role: string , permissions: string [] , userContext?: any ) : Promise < { status: "OK" | "UNKNOWN_ROLE_ERROR" } > Parameters role: string permissions: string [] Optional userContext: any Returns Promise < { status: "OK" | "UNKNOWN_ROLE_ERROR" } > Static remove User Roleremove User Role( tenantId: string , userId: string , role: string , userContext?: any ) : Promise < { didUserHaveRole: boolean ; status: "OK" } | { status: "UNKNOWN_ROLE_ERROR" } > Parameters tenantId: string userId: string role: string Optional userContext: any Returns Promise < { didUserHaveRole: boolean ; status: "OK" } | { status: "UNKNOWN_ROLE_ERROR" } > Legend Variable Function Function with type parameter Type alias Class Class with type parameter Constructor Static property Static method Settings Theme OS Light Dark
\ No newline at end of file
diff --git a/docs/interfaces/framework_awsLambda.SessionEvent.html b/docs/interfaces/framework_awsLambda.SessionEvent.html
index 81174b8fb..da7480b61 100644
--- a/docs/interfaces/framework_awsLambda.SessionEvent.html
+++ b/docs/interfaces/framework_awsLambda.SessionEvent.html
@@ -1 +1 @@
-SessionEvent | supertokens-node Properties headers headers: APIGatewayProxyEventHeaders
http Method http Method: string
is Base64 Encoded is Base64 Encoded: boolean
multi Value Headers multi Value Headers: APIGatewayProxyEventMultiValueHeaders
multi Value Query String Parameters multi Value Query String Parameters: null | APIGatewayProxyEventMultiValueQueryStringParameters
path Parameters path Parameters: null | APIGatewayProxyEventPathParameters
query String Parameters query String Parameters: null | APIGatewayProxyEventQueryStringParameters
request Context request Context: APIGatewayEventRequestContextWithAuthorizer < APIGatewayEventDefaultAuthorizerContext >
stage Variables stage Variables: null | APIGatewayProxyEventStageVariables
supertokens supertokens: { response: { cookies: string [] ; headers: { allowDuplicateKey: boolean ; key: string ; value: string | number | boolean } [] } }
Type declaration response: { cookies: string [] ; headers: { allowDuplicateKey: boolean ; key: string ; value: string | number | boolean } [] } cookies: string [] headers: { allowDuplicateKey: boolean ; key: string ; value: string | number | boolean } [] Legend Variable Function Function with type parameter Type alias Class Class with type parameter Settings Theme OS Light Dark
\ No newline at end of file
+SessionEvent | supertokens-node Properties headers headers: APIGatewayProxyEventHeaders
http Method http Method: string
is Base64 Encoded is Base64 Encoded: boolean
multi Value Headers multi Value Headers: APIGatewayProxyEventMultiValueHeaders
multi Value Query String Parameters multi Value Query String Parameters: null | APIGatewayProxyEventMultiValueQueryStringParameters
path Parameters path Parameters: null | APIGatewayProxyEventPathParameters
query String Parameters query String Parameters: null | APIGatewayProxyEventQueryStringParameters
request Context request Context: APIGatewayEventRequestContextWithAuthorizer < APIGatewayEventDefaultAuthorizerContext >
stage Variables stage Variables: null | APIGatewayProxyEventStageVariables
supertokens supertokens: { response: { cookies: string [] ; headers: { allowDuplicateKey: boolean ; key: string ; value: string | number | boolean } [] } }
Type declaration response: { cookies: string [] ; headers: { allowDuplicateKey: boolean ; key: string ; value: string | number | boolean } [] } cookies: string [] headers: { allowDuplicateKey: boolean ; key: string ; value: string | number | boolean } [] Legend Variable Function Function with type parameter Type alias Class Class with type parameter Settings Theme OS Light Dark
\ No newline at end of file
diff --git a/docs/interfaces/framework_awsLambda.SessionEventV2.html b/docs/interfaces/framework_awsLambda.SessionEventV2.html
index 6454688a9..545f91441 100644
--- a/docs/interfaces/framework_awsLambda.SessionEventV2.html
+++ b/docs/interfaces/framework_awsLambda.SessionEventV2.html
@@ -1 +1 @@
-SessionEventV2 | supertokens-node Properties Optional bodybody?: string
Optional cookiescookies?: string []
headers headers: APIGatewayProxyEventHeaders
is Base64 Encoded is Base64 Encoded: boolean
Optional path Parameterspath Parameters?: APIGatewayProxyEventPathParameters
Optional query String Parametersquery String Parameters?: APIGatewayProxyEventQueryStringParameters
raw Query String raw Query String: string
request Context request Context: { accountId: string ; apiId: string ; authorizer?: { jwt: { claims: {} ; scopes: string [] } } ; domainName: string ; domainPrefix: string ; http: { method: string ; path: string ; protocol: string ; sourceIp: string ; userAgent: string } ; requestId: string ; routeKey: string ; stage: string ; time: string ; timeEpoch: number }
Type declaration account Id: string api Id: string Optional authorizer?: { jwt: { claims: {} ; scopes: string [] } } jwt: { claims: {} ; scopes: string [] } claims: {} [ name: string ]: string | number | boolean | string [] scopes: string [] domain Name: string domain Prefix: string http: { method: string ; path: string ; protocol: string ; sourceIp: string ; userAgent: string } method: string path: string protocol: string source Ip: string user Agent: string request Id: string route Key: string stage: string time: string time Epoch: number Optional stage Variablesstage Variables?: APIGatewayProxyEventStageVariables
supertokens supertokens: { response: { cookies: string [] ; headers: { allowDuplicateKey: boolean ; key: string ; value: string | number | boolean } [] } }
Type declaration response: { cookies: string [] ; headers: { allowDuplicateKey: boolean ; key: string ; value: string | number | boolean } [] } cookies: string [] headers: { allowDuplicateKey: boolean ; key: string ; value: string | number | boolean } [] Legend Variable Function Function with type parameter Type alias Class Class with type parameter Settings Theme OS Light Dark
\ No newline at end of file
+SessionEventV2 | supertokens-node Properties Optional bodybody?: string
Optional cookiescookies?: string []
headers headers: APIGatewayProxyEventHeaders
is Base64 Encoded is Base64 Encoded: boolean
Optional path Parameterspath Parameters?: APIGatewayProxyEventPathParameters
Optional query String Parametersquery String Parameters?: APIGatewayProxyEventQueryStringParameters
raw Query String raw Query String: string
request Context request Context: { accountId: string ; apiId: string ; authorizer?: { jwt: { claims: {} ; scopes: string [] } } ; domainName: string ; domainPrefix: string ; http: { method: string ; path: string ; protocol: string ; sourceIp: string ; userAgent: string } ; requestId: string ; routeKey: string ; stage: string ; time: string ; timeEpoch: number }
Type declaration account Id: string api Id: string Optional authorizer?: { jwt: { claims: {} ; scopes: string [] } } jwt: { claims: {} ; scopes: string [] } claims: {} [ name: string ]: string | number | boolean | string [] scopes: string [] domain Name: string domain Prefix: string http: { method: string ; path: string ; protocol: string ; sourceIp: string ; userAgent: string } method: string path: string protocol: string source Ip: string user Agent: string request Id: string route Key: string stage: string time: string time Epoch: number Optional stage Variablesstage Variables?: APIGatewayProxyEventStageVariables
supertokens supertokens: { response: { cookies: string [] ; headers: { allowDuplicateKey: boolean ; key: string ; value: string | number | boolean } [] } }
Type declaration response: { cookies: string [] ; headers: { allowDuplicateKey: boolean ; key: string ; value: string | number | boolean } [] } cookies: string [] headers: { allowDuplicateKey: boolean ; key: string ; value: string | number | boolean } [] Legend Variable Function Function with type parameter Type alias Class Class with type parameter Settings Theme OS Light Dark
\ No newline at end of file
diff --git a/docs/interfaces/framework_express.SessionRequest.html b/docs/interfaces/framework_express.SessionRequest.html
index 4a24d89ba..6e3df5b25 100644
--- a/docs/interfaces/framework_express.SessionRequest.html
+++ b/docs/interfaces/framework_express.SessionRequest.html
@@ -118,7 +118,7 @@
signed Cookies signed Cookies: any
signed Cookies signed Cookies: any
- Preparing search index...
- The search index is not available
supertokens-nodeClass default
Hierarchy
Index
Constructors
Properties
Methods
Constructors
constructor
Returns default
Properties
Static init
Type declaration
Parameters
Optional config: TypeInput
Returns RecipeListFunction
Methods
Static can Create Primary User
Parameters
recipeUserId: RecipeUserId
userContext: any = {}
Returns Promise<{ status: "OK"; wasAlreadyAPrimaryUser: boolean } | { description: string; primaryUserId: string; status: "RECIPE_USER_ID_ALREADY_LINKED_WITH_PRIMARY_USER_ID_ERROR" | "ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR" }>
Static can Link Accounts
Parameters
recipeUserId: RecipeUserId
primaryUserId: string
userContext: any = {}
Returns Promise<{ accountsAlreadyLinked: boolean; status: "OK" } | { description: string; primaryUserId: string; status: "RECIPE_USER_ID_ALREADY_LINKED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR" } | { description: string; primaryUserId: string; status: "ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR" } | { status: "INPUT_USER_IS_NOT_A_PRIMARY_USER" }>
Static create Primary User
Parameters
recipeUserId: RecipeUserId
userContext: any = {}
Returns Promise<{ status: "OK"; user: User; wasAlreadyAPrimaryUser: boolean } | { primaryUserId: string; status: "RECIPE_USER_ID_ALREADY_LINKED_WITH_PRIMARY_USER_ID_ERROR" } | { description: string; primaryUserId: string; status: "ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR" }>
Static create Primary User Id Or Link Accounts
This is a function which is a combination of createPrimaryUser and linkAccounts where the input recipeUserId is either linked to a user that it can be linked to, or is made into a primary user.
The output will be the user ID of the user that it was linked to, or it will be the same as the input recipeUserId if it was made into a primary user, or if there was no linking that happened.
-Parameters
tenantId: string
recipeUserId: RecipeUserId
userContext: any = {}
Returns Promise<User>
Static get Primary User That Can Be Linked To Recipe User Id
Parameters
tenantId: string
recipeUserId: RecipeUserId
userContext: any = {}
Returns Promise<User>
Static get Primary User That Can Be Linked To Recipe User Id
This function returns the primary user that the input recipe ID can be linked to. It can be used to determine which primary account the linking will happen to if the input recipe user ID was to be linked.
If the function returns undefined, it means that there is no primary user that the input recipe ID can be linked to, and therefore it can be made into a primary user itself.
-Parameters
tenantId: string
recipeUserId: RecipeUserId
userContext: any = {}
Returns Promise<undefined | User>
Static is Email Change Allowed
Parameters
recipeUserId: RecipeUserId
newEmail: string
isVerified: boolean
Optional userContext: any
Returns Promise<boolean>
Static is Sign In Allowed
Parameters
tenantId: string
recipeUserId: RecipeUserId
userContext: any = {}
Returns Promise<boolean>
Static is Sign Up Allowed
Parameters
tenantId: string
newUser: AccountInfoWithRecipeId
isVerified: boolean
Optional userContext: any
Returns Promise<boolean>
Static link Accounts
Parameters
recipeUserId: RecipeUserId
primaryUserId: string
userContext: any = {}
Returns Promise<{ accountsAlreadyLinked: boolean; status: "OK"; user: User } | { primaryUserId: string; status: "RECIPE_USER_ID_ALREADY_LINKED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR"; user: User } | { description: string; primaryUserId: string; status: "ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR" } | { status: "INPUT_USER_IS_NOT_A_PRIMARY_USER" }>
Static unlink Account
Parameters
recipeUserId: RecipeUserId
userContext: any = {}
Returns Promise<{ status: "OK"; wasLinked: boolean; wasRecipeUserDeleted: boolean }>
Generated using TypeDoc