Añadido soporte para autenticación con Google y ajustes en la configuración del entorno

This commit is contained in:
Mireya Cueto Garrido
2026-04-13 11:08:14 +02:00
parent f216ddea80
commit 040989bdfc
4 changed files with 18 additions and 18 deletions
+4
View File
@@ -4,6 +4,10 @@ from fastapi import Depends, HTTPException, status
from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer
from api.database.mongodb import users_collection
from bson import ObjectId
import os
import jwt
SECRET_KEY = os.getenv("SECRET_KEY")
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")