Skip to content

Commit

Permalink
Merge pull request #787 from Robert-Steiner/patch-1
Browse files Browse the repository at this point in the history
Fix comment in python example
  • Loading branch information
rishabhpoddar authored Apr 2, 2024
2 parents fab2044 + 53d2e7a commit 4146175
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ SuperTokens.init({
return {
...originalImplementation,
signUp: async function (input) {
// First we call the original implementation of signUpPOST.
// First we call the original implementation of signUp.
let response = await originalImplementation.signUp(input);

// Post sign up response, we check if it was successful
Expand Down Expand Up @@ -420,7 +420,7 @@ def override_email_password_apis(original_implementation: APIInterface):
original_sign_up_post = original_implementation.sign_up_post

async def sign_up_post(form_fields: List[FormField], tenant_id: str, api_options: APIOptions, user_context: Dict[str, Any]):
# First we call the original implementation of signInPOST.
# First we call the original implementation of sign_up_post.
response = await original_sign_up_post(form_fields, tenant_id, api_options, user_context)

# Post sign up response, we check if it was successful
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def override_email_password_apis(original_implementation: APIInterface):
async def sign_up_post(form_fields: List[FormField], tenant_id: str,
api_options: APIOptions,
user_context: Dict[str, Any]):
# First we call the original implementation of signInPOST.
# First we call the original implementation of sign_up_post.
response = await original_sign_up_post(form_fields, tenant_id, api_options, user_context)

# Post sign up response, we check if it was successful
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func main() {
// override the sign in up function
(*originalImplementation.ConsumeCode) = func(userInput *plessmodels.UserInputCodeWithDeviceID, linkCode *string, preAuthSessionID string, tenantId string, userContext supertokens.UserContext) (plessmodels.ConsumeCodeResponse, error) {

// First we call the original implementation of ConsumeCodeUp.
// First we call the original implementation of ConsumeCode.
response, err := originalConsumeCode(userInput, linkCode, preAuthSessionID, tenantId, userContext)
if err != nil {
return plessmodels.ConsumeCodeResponse{}, err
Expand Down Expand Up @@ -224,7 +224,7 @@ def override_passwordless_functions(original_implementation: RecipeInterface) ->
tenant_id: str,
user_context: Dict[str, Any]
):
# First we call the original implementation of consumeCodePOST.
# First we call the original implementation of consume_code.
result = await original_consume_code(pre_auth_session_id, user_input_code, device_id, link_code, tenant_id, user_context)

# Post sign up response, we check if it was successful
Expand Down
4 changes: 2 additions & 2 deletions v2/passwordless/common-customizations/userid-format.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func main() {
// override the sign in up function
(*originalImplementation.ConsumeCode) = func(userInput *plessmodels.UserInputCodeWithDeviceID, linkCode *string, preAuthSessionID string, tenantId string, userContext supertokens.UserContext) (plessmodels.ConsumeCodeResponse, error) {

// First we call the original implementation of ConsumeCodeUp.
// First we call the original implementation of ConsumeCode.
response, err := originalConsumeCode(userInput, linkCode, preAuthSessionID, tenantId, userContext)
if err != nil {
return plessmodels.ConsumeCodeResponse{}, err
Expand Down Expand Up @@ -154,7 +154,7 @@ def override_passwordless_functions(original_implementation: RecipeInterface) ->
tenant_id: str,
user_context: Dict[str, Any]
):
# First we call the original implementation of consumeCodePOST.
# First we call the original implementation of consume_code.
result = await original_consume_code(pre_auth_session_id, user_input_code, device_id, link_code, tenant_id, user_context)

# Post sign up response, we check if it was successful
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ SuperTokens.init({
...originalImplementation,
signInUp: async function (input) {

// First we call the original implementation of signInUpPOST.
// First we call the original implementation of signInUp.
let response = await originalImplementation.signInUp(input);

// Post sign up response, we check if it was successful
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ SuperTokens.init({
return {
...originalImplementation,
emailPasswordSignUpPOST: async function (input) {
// First we call the original implementation of signUpPOST.
// First we call the original implementation of emailPasswordSignUpPOST.
let response = await originalImplementation.emailPasswordSignUpPOST!(input);

// Post sign up response, we check if it was successful
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ def override_apis(original_implementation: APIInterface):

async def emailpassword_sign_up_post(form_fields: List[FormField], tenant_id: str,
api_options: EmailPasswordAPIOptions, user_context: Dict[str, Any]):
# First we call the original implementation of sign_up_post
# First we call the original implementation of emailpassword_sign_up_post
response = await original_emailpassword_sign_up_post(form_fields, tenant_id, api_options, user_context)

# Post sign up response, we check if it was successful
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ SuperTokens.init({
},

consumeCode: async (input) => {
// First we call the original implementation of consumeCodePOST.
// First we call the original implementation of consumeCode.
const response = await originalImplementation.consumeCode(input);

// Post sign up response, we check if it was successful
Expand Down Expand Up @@ -229,7 +229,7 @@ func main() {
// override the passwordless sign in up function
(*originalImplementation.ConsumeCode) = func(userInput *plessmodels.UserInputCodeWithDeviceID, linkCode *string, preAuthSessionID string, tenantId string, userContext supertokens.UserContext) (tplmodels.ConsumeCodeResponse, error) {

// First we call the original implementation of ConsumeCodeUp.
// First we call the original implementation of ConsumeCode.
response, err := originalConsumeCode(userInput, linkCode, preAuthSessionID, tenantId, userContext)
if err != nil {
return tplmodels.ConsumeCodeResponse{}, err
Expand Down Expand Up @@ -317,7 +317,7 @@ def override_thirdpartypasswordless_functions(original_implementation: RecipeInt
tenant_id: str,
user_context: Dict[str, Any]
):
# First we call the original implementation of consumeCodePOST.
# First we call the original implementation of consume_code.
result = await original_consume_code(pre_auth_session_id, user_input_code, device_id, link_code, tenant_id, user_context)

# Post sign up response, we check if it was successful
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ SuperTokens.init({
},

consumeCode: async (input) => {
// First we call the original implementation of consumeCodePOST.
// First we call the original implementation of consumeCode.
const response = await originalImplementation.consumeCode(input);

// Post sign up response, we check if it was successful
Expand Down Expand Up @@ -163,7 +163,7 @@ func main() {
// override the passwordless sign in up function
(*originalImplementation.ConsumeCode) = func(userInput *plessmodels.UserInputCodeWithDeviceID, linkCode *string, preAuthSessionID string, tenantId string, userContext supertokens.UserContext) (tplmodels.ConsumeCodeResponse, error) {

// First we call the original implementation of ConsumeCodeUp.
// First we call the original implementation of ConsumeCode.
response, err := originalConsumeCode(userInput, linkCode, preAuthSessionID, tenantId, userContext)
if err != nil {
return tplmodels.ConsumeCodeResponse{}, err
Expand Down

0 comments on commit 4146175

Please sign in to comment.