diff --git a/v2/emailpassword/common-customizations/userid-format.mdx b/v2/emailpassword/common-customizations/userid-format.mdx index dd82c36c7..0c756ba3e 100644 --- a/v2/emailpassword/common-customizations/userid-format.mdx +++ b/v2/emailpassword/common-customizations/userid-format.mdx @@ -62,6 +62,7 @@ SuperTokens.init({ // we modify the response object to have the custom user ID. response.user.id = externalUserId response.user.loginMethods[0].recipeUserId = new RecipeUserId(externalUserId); + response.recipeUserId = new RecipeUserId(externalUserId); // highlight-end } diff --git a/v2/passwordless/common-customizations/userid-format.mdx b/v2/passwordless/common-customizations/userid-format.mdx index 487c15be4..6cb39399b 100644 --- a/v2/passwordless/common-customizations/userid-format.mdx +++ b/v2/passwordless/common-customizations/userid-format.mdx @@ -66,6 +66,7 @@ SuperTokens.init({ // we modify the response object to have the custom user ID. response.user.id = externalUserId response.user.loginMethods[0].recipeUserId = new RecipeUserId(externalUserId); + response.recipeUserId = new RecipeUserId(externalUserId); // highlight-end } } diff --git a/v2/thirdparty/common-customizations/userid-format.mdx b/v2/thirdparty/common-customizations/userid-format.mdx index 442b7d39b..628b6ba2f 100644 --- a/v2/thirdparty/common-customizations/userid-format.mdx +++ b/v2/thirdparty/common-customizations/userid-format.mdx @@ -64,6 +64,7 @@ SuperTokens.init({ // we modify the response object to have the custom user ID. response.user.id = externalUserId response.user.loginMethods[0].recipeUserId = new RecipeUserId(externalUserId); + response.recipeUserId = new RecipeUserId(externalUserId); // highlight-end } } diff --git a/v2/thirdpartyemailpassword/common-customizations/userid-format.mdx b/v2/thirdpartyemailpassword/common-customizations/userid-format.mdx index 9e3cd9ecd..7d518d472 100644 --- a/v2/thirdpartyemailpassword/common-customizations/userid-format.mdx +++ b/v2/thirdpartyemailpassword/common-customizations/userid-format.mdx @@ -64,6 +64,7 @@ SuperTokens.init({ // we modify the response object to have the custom user ID. response.user.id = externalUserId response.user.loginMethods[0].recipeUserId = new RecipeUserId(externalUserId); + response.recipeUserId = new RecipeUserId(externalUserId); // highlight-end } @@ -92,6 +93,7 @@ SuperTokens.init({ // we modify the response object to have the custom user ID. response.user.id = externalUserId response.user.loginMethods[0].recipeUserId = new RecipeUserId(externalUserId); + response.recipeUserId = new RecipeUserId(externalUserId); // highlight-end } } diff --git a/v2/thirdpartypasswordless/common-customizations/userid-format.mdx b/v2/thirdpartypasswordless/common-customizations/userid-format.mdx index 0ab6a245e..f9dc6beeb 100644 --- a/v2/thirdpartypasswordless/common-customizations/userid-format.mdx +++ b/v2/thirdpartypasswordless/common-customizations/userid-format.mdx @@ -67,6 +67,7 @@ SuperTokens.init({ // we modify the response object to have the custom user ID. response.user.id = externalUserId response.user.loginMethods[0].recipeUserId = new RecipeUserId(externalUserId); + response.recipeUserId = new RecipeUserId(externalUserId); // highlight-end } } @@ -105,6 +106,7 @@ SuperTokens.init({ // we modify the response object to have the custom user ID. response.user.id = externalUserId response.user.loginMethods[0].recipeUserId = new RecipeUserId(externalUserId); + response.recipeUserId = new RecipeUserId(externalUserId); // highlight-end } }