Skip to content

Commit

Permalink
supabase base url incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
justinthelaw authored Oct 1, 2024
1 parent a6f0af0 commit d590268
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/utils/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ def get_supabase_url() -> str:
"""Get the URL for Supabase.
Returns:
str: The URL for Supabase. (default: "https://supabase-kong.uds.dev/auth/v1")
str: The URL for Supabase. (default: "https://supabase-kong.uds.dev")
"""

return os.getenv("SUPABASE_URL", "https://supabase-kong.uds.dev/auth/v1")
return os.getenv("SUPABASE_URL", "https://supabase-kong.uds.dev")


def create_test_user(
Expand Down Expand Up @@ -54,7 +54,7 @@ def create_test_user(

try:
requests.post(
url="https://supabase-kong.uds.dev/auth/v1/signup",
url=f"{supabase_base_url}/auth/v1/signup",
headers=headers,
json={
"email": email,
Expand Down Expand Up @@ -95,7 +95,7 @@ def get_jwt_token(
AssertionError: If the request fails or the response status code is not 200.
"""

url = f"{supabase_base_url}/token?grant_type=password"
url = f"{supabase_base_url}/auth/v1/token?grant_type=password"
headers = {"apikey": f"{api_key}", "Content-Type": "application/json"}
data = {"email": test_email, "password": test_password}

Expand Down

0 comments on commit d590268

Please sign in to comment.