From 646dc66ea8d59a7f78bf5a5e55d9b5065a718c23 Mon Sep 17 00:00:00 2001 From: Angelo Lamonaca <69331077+angelolamonaca@users.noreply.github.com> Date: Fri, 11 Oct 2024 14:59:40 +0200 Subject: [PATCH] fix: Fix reqPath for bypass check for verify EP (#1789) ## 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. --- internal/api/middleware_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/middleware_test.go b/internal/api/middleware_test.go index 365abbbdb..33b62a79d 100644 --- a/internal/api/middleware_test.go +++ b/internal/api/middleware_test.go @@ -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", },