Skip to content

Commit

Permalink
fix: Fix reqPath for bypass check for verify EP (#1789)
Browse files Browse the repository at this point in the history
## What kind of change does this PR introduce?

Fix reqPath for verify check bypass test

## What is the current behavior?

We are experiencing lot of 403 responses from /v1/verify EP. Supabase is
returning "invalid or expired OTP". Correcting this test maybe will
raise the cause of our problems. I did not setup the project on my
machine, someone can run the test and check if it passes also on verify
EP?

## What is the new behavior?

Test is correct.

## Additional context

Add any other context or screenshots.
  • Loading branch information
angelolamonaca authored Oct 11, 2024
1 parent 0a3968b commit 646dc66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ func (ts *MiddlewareTestSuite) TestIsValidAuthorizedEmail() {
},
{
desc: "bypass check for verify endpoint",
reqPath: "/token",
reqPath: "/verify",
body: map[string]interface{}{
"email": "valid@example.com",
},
Expand Down

0 comments on commit 646dc66

Please sign in to comment.