fix: update Supabase env vars with new keys and local URL

- Updated ANON_KEY and SERVICE_ROLE_KEY from supabase container
- Changed SUPABASE_URL to local dev instance (192.168.0.155:8000)
- Synced .env.local with .env for consistency
This commit is contained in:
Classroom Copilot Dev
2026-02-23 03:38:41 +00:00
parent ccacad75fe
commit 2d2c88706e
3 changed files with 37 additions and 23 deletions
+2 -2
View File
@@ -55,7 +55,7 @@ def verify_supabase_jwt_str(token: str) -> dict:
def decodeSupabaseJWT(token: str) -> dict:
try:
jwt_secret = os.getenv('SUPABASE_JWT_SECRET')
jwt_secret = os.getenv('JWT_SECRET')
payload = jwt.decode(token, jwt_secret, algorithms=["HS256"], audience="authenticated")
return payload
except Exception:
@@ -70,7 +70,7 @@ async def verify_supabase_token_dep(credentials: HTTPAuthorizationCredentials =
# Verify token using your Supabase JWT secret
decoded_token = jwt.decode(
token,
os.getenv('SUPABASE_JWT_SECRET'),
os.getenv('JWT_SECRET'),
algorithms=["HS256"],
audience="authenticated"
)