@@ -305,7 +305,7 @@ func (ts *VerifyTestSuite) TestExpiredConfirmationToken() {
305
305
306
306
f , err := url .ParseQuery (rurl .Fragment )
307
307
require .NoError (ts .T (), err )
308
- assert .Equal (ts .T (), "403" , f .Get ("error_code" ))
308
+ assert .Equal (ts .T (), ErrorCodeOTPExpired , f .Get ("error_code" ))
309
309
assert .Equal (ts .T (), "Email link is invalid or has expired" , f .Get ("error_description" ))
310
310
assert .Equal (ts .T (), "access_denied" , f .Get ("error" ))
311
311
}
@@ -824,7 +824,7 @@ func (ts *VerifyTestSuite) TestVerifyBannedUser() {
824
824
825
825
f , err := url .ParseQuery (rurl .Fragment )
826
826
require .NoError (ts .T (), err )
827
- assert .Equal (ts .T (), "403" , f .Get ("error_code" ))
827
+ assert .Equal (ts .T (), ErrorCodeUserBanned , f .Get ("error_code" ))
828
828
})
829
829
}
830
830
}
@@ -1145,7 +1145,7 @@ func (ts *VerifyTestSuite) TestPrepRedirectURL() {
1145
1145
1146
1146
func (ts * VerifyTestSuite ) TestPrepErrorRedirectURL () {
1147
1147
const DefaultError = "Invalid redirect URL"
1148
- redirectError := fmt .Sprintf ("error=invalid_request&error_code=400 &error_description=%s" , url .QueryEscape (DefaultError ))
1148
+ redirectError := fmt .Sprintf ("error=invalid_request&error_code=validation_failed &error_description=%s" , url .QueryEscape (DefaultError ))
1149
1149
1150
1150
cases := []struct {
1151
1151
desc string
0 commit comments