Authentication best practices

Proper management of API credentials is critical for ensuring the security and reliability of your integrations. Follow these best practices:

  • Store credentials securely: Keep your client secret and access tokens safe to prevent unauthorized access.
  • Use descriptive labels: When creating API credentials, use descriptive labels to identify their purpose. (e.g., "HR Integration - Onboarding App"). This will help you quickly identify which credentials are associated with specific integrations, especially if you're managing multiple credentials.
  • Regularly review and delete unused credentials: If any set of credentials is no longer needed or has been compromised, delete them immediately to prevent unauthorized access. Once credentials are deleted, any related integrations will stop working.
  • Monitor token expiry: Implement logic to request a new access token before the current one expires to ensure uninterrupted service.
  • Handle errors: Build robust error handling to manage authentication and authorization issues. For more information, see our Error handling guide.