P4-Games / ChatterPay-Backend

ChatterPay: A wallet for WhatsApp that integrates AI and Account Abstraction, enabling any user to easily and securely use blockchain without technical knowledge.
https://chatterpay.net
0 stars 0 forks source link

Incorporate JWT/access-token as API authentication #22

Closed dappsar closed 2 weeks ago

dappsar commented 1 month ago

All endpoints must be authenticated to reduce security issues. Since there are two call points: frontend and prompts (Chatizalo functions), it is recommended to have two access tokens. One to be used by the frontend and another for the prompts. These access tokens should be stored in and read from GCP's Secret Manager.

ToDo

dappsar commented 1 month ago

Prompt (function): va a tener fijo el token (esto queda en bdd) y con esa llamada al endpoint con access-token. El access-token del promt, queda en secret manager y el backend lee de ahí.

Front lee secret manager y luego llama a backend.