You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Request body of Signup POST API is empty after calling original implementation.
Use case: To pass and use additional key value pairs from the request body of Signup POST API
// First we copy the original implementation
originalThirdPartySignInUpPOST := *originalImplementation.ThirdPartySignInUpPOST
// we override the thirdpartyemailpassword signinup POST API to return the social provider's access token
(*originalImplementation.ThirdPartySignInUpPOST) = func(provider tpmodels.TypeProvider, code string, authCodeResponse interface{}, redirectURI string, options tpmodels.APIOptions, userContext supertokens.UserContext) (tpepmodels.ThirdPartyOutput, error) {
body := options.Req.Body
strBody, err := ioutil.ReadAll(body)
if err != nil {
fmt.Println("err in printing body", err)
}
fmt.Printf("strBody??? %s", strBody)```
The text was updated successfully, but these errors were encountered:
Request body of Signup POST API is empty after calling original implementation.
Use case: To pass and use additional key value pairs from the request body of Signup POST API
The text was updated successfully, but these errors were encountered: