Update settings.py #22

Merged
jjminguez merged 1 commits from pre-dev into dev 2026-04-14 21:25:17 +00:00
Showing only changes of commit c32092d216 - Show all commits

View File

@@ -3,6 +3,18 @@ import os
from dotenv import load_dotenv
from datetime import timedelta
SIMPLE_JWT = {
# Cambiamos el tiempo de acceso a 3 horas
'ACCESS_TOKEN_LIFETIME': timedelta(hours=3),
# El tiempo del refresh token suele ser mayor (por ejemplo, 1 día)
'REFRESH_TOKEN_LIFETIME': timedelta(days=1),
# Otras configuraciones que ya tengas...
'ALGORITHM': 'HS256',
'AUTH_HEADER_TYPES': ('Bearer',),
}
# 1. RUTA DEL SETTINGS Y CARGA DEL .ENV
# Obtenemos la ruta de la carpeta donde está este archivo (core/)
CURRENT_DIR = Path(__file__).resolve().parent