> 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 the SDK developers regularly incorporate.

***

### Keep the code clean and organized.

Follow best practices in the implementation process and keep the code organized for better configuration control and easier maintenance.

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

***

### Handle the possible errors and component flows correctly.

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

***

### Make the most of the advantages of the framework used.

Use the tools the framework offers to optimize the implementation.

* Use the syntax the framework offers.
* Use routers for switching components during the SDK Web Flow.
* Store sensitive data in secure locations.

***

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

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

***

### Perform comprehensive 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, consult Facephi Technical Support.<br>
