Category: JS Objects
Updated

This solution is summarized from an archived support forum post. This information may have changed. If you notice an error, please let us know in Discord.

Adding Custom Authentication to Applications

Issue

I need to protect my APIs with authentication, but I want to implement custom authentication using APIs. I also need to securely store and access tokens within Appsmith local storage to make API calls. I'm looking for guidance on how to set this up efficiently and effectively.

Resolution

You can implement custom authentication in Appsmith to securely protect your APIs and manage tokens efficiently. This approach is useful when you need to integrate with APIs that require custom headers, OAuth2 tokens, or other authentication mechanisms not natively supported by Appsmith.
 

Custom authentication in Appsmith allows you to:
- Authenticate users against an external service.
- Store and manage authentication tokens securely.
- Automatically inject tokens into subsequent API calls.

For detailed reference, see [Custom Authentication in Appsmith]