- Implemented MpReauthNotice component to notify users when reauthorization is needed. - Created MpStatusCard component to display the current status of the Mercado Pago account. - Added utility functions and constants for handling Mercado Pago status and messages. - Introduced hooks for managing the connection and disconnection of Mercado Pago accounts. - Developed a disconnect confirmation modal for user actions. - Added tests for the new functionality and utility functions. - Defined schemas for Mercado Pago account status and callback reasons in shared package.
33 lines
1.1 KiB
Plaintext
33 lines
1.1 KiB
Plaintext
# PostgreSQL connection string
|
|
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/gruperly?schema=public"
|
|
|
|
# Frontend origin (CORS + CSRF)
|
|
WEB_URL="http://localhost:6173"
|
|
|
|
# Better Auth
|
|
BETTER_AUTH_SECRET="replace-with-a-strong-secret"
|
|
BETTER_AUTH_URL="http://localhost:4000"
|
|
|
|
# Social providers
|
|
GOOGLE_CLIENT_ID=""
|
|
GOOGLE_CLIENT_SECRET=""
|
|
|
|
# Email (SMTP por ahora; migrar a un proveedor transaccional en el futuro)
|
|
EMAIL_PROVIDER="smtp"
|
|
EMAIL_SERVER_HOST=""
|
|
EMAIL_SERVER_PORT="587"
|
|
EMAIL_SERVER_USER=""
|
|
EMAIL_SERVER_PASSWORD=""
|
|
EMAIL_FROM="Gruperly <no-reply@gruperly.com>"
|
|
|
|
# Mercado Pago (OAuth, Authorization Code + PKCE)
|
|
MP_CLIENT_ID=""
|
|
MP_CLIENT_SECRET=""
|
|
# Debe coincidir exactamente con la "Redirect URL" de la app en el panel de MP.
|
|
# El panel exige HTTPS (rechaza http://localhost): en local usá un túnel
|
|
# (p. ej. ngrok http --url=https://TU-DOMINIO.ngrok-free.app 4000) y cargá
|
|
# la URL del túnel acá y en el panel.
|
|
MP_REDIRECT_URI=""
|
|
# Clave de 32 bytes en base64 para cifrar los tokens de MP en reposo (AES-256-GCM).
|
|
# Generar con: openssl rand -base64 32
|
|
TOKEN_ENCRYPTION_KEY="" |