Skip to content

Commit 1a1a5cd

Browse files
committed
fix: apple redirect
1 parent 43392b2 commit 1a1a5cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

recipe/thirdparty/api/appleRedirect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func AppleRedirectHandler(apiImplementation tpmodels.APIInterface, options tpmod
2626
return nil
2727
}
2828

29-
err := options.Req.ParseMultipartForm(0)
29+
err := options.Req.ParseForm()
3030
if err != nil {
3131
return err
3232
}

recipe/thirdparty/api/implementation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func MakeAPIImplementation() tpmodels.APIInterface {
118118

119119
appleRedirectHandlerPOST := func(formPostInfoFromProvider map[string]interface{}, options tpmodels.APIOptions, userContext supertokens.UserContext) error {
120120
state := formPostInfoFromProvider["state"].(string)
121-
stateBytes, err := base64.RawStdEncoding.DecodeString(state)
121+
stateBytes, err := base64.StdEncoding.DecodeString(state)
122122

123123
if err != nil {
124124
return err

0 commit comments

Comments
 (0)