Skip to content

Commit

Permalink
fixes docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar committed Jun 3, 2024
1 parent 862b677 commit 36d846e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions v2/emailpassword/common-customizations/userid-format.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
1 change: 1 addition & 0 deletions v2/passwordless/common-customizations/userid-format.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down
1 change: 1 addition & 0 deletions v2/thirdparty/common-customizations/userid-format.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down Expand Up @@ -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
}
}
Expand Down

0 comments on commit 36d846e

Please sign in to comment.