From 36d846e5d8bc0fe9f939a97e56ca431a9db6a5d6 Mon Sep 17 00:00:00 2001 From: rishabhpoddar Date: Mon, 3 Jun 2024 19:55:43 +0530 Subject: [PATCH] fixes docs --- v2/emailpassword/common-customizations/userid-format.mdx | 1 + v2/passwordless/common-customizations/userid-format.mdx | 1 + v2/thirdparty/common-customizations/userid-format.mdx | 1 + .../common-customizations/userid-format.mdx | 2 ++ .../common-customizations/userid-format.mdx | 2 ++ 5 files changed, 7 insertions(+) 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 } }