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:
@@ -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"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user