> For the complete documentation index, see [llms.txt](https://docs.facephi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facephi.com/docs.facephi-en/sdks/sdk-web/introduccion/buenas-practicas.md).

# Best practices

### Always use an HTTPS connection.

It ensures the security of data transmitted between the client and the server, protecting against man-in-the-middle attacks.

***

### Update the SDK to the latest stable version.

Take advantage of the security improvements and features that SDK developers regularly incorporate.

***

### Keep the code clean and organized.

Follow good practices in the implementation process and keep the code organized for better control of configurations and easier maintenance.

In implementations with multiple components, it is advisable to separate each component into different files to maintain modularity and scalability.

***

### Handle the possible errors and flows of the components correctly.

Implement robust error handling to ensure that the system can recover and properly report failures.

***

### Take full advantage of the benefits of the framework used.

Use the tools that the framework offers to optimize the implementation.

* Use the syntax that the framework offers.
* Use routers for component switching during the SDK Web flow.
* Store sensitive data in secure places.

***

### Protect your `apiKey` and avoid exposing it publicly.

Keep access credentials confidential to prevent unauthorized use of the SDK.

***

### Perform complete tests in the Sandbox environment before moving to production.

Make sure that all components work as expected, without affecting the production environment.

***

For additional questions, contact Facephi Technical Support.<br>
