> For the complete documentation index, see [llms.txt](https://tule-developer.gitbook.io/noway/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tule-developer.gitbook.io/noway/_docs/store-apis-key-in-frontend-sdk-issues.md).

# Store APIs Key in FrontEnd SDK issues

## Context

Provide a service and SDK(include customer's key) for frontend (web/mobile)

## Issue

Attacker can get the key and spam/abuse services -> customer can be highly charged&#x20;

## Wrap Solution

### Flow: Customer's frontend -> provider's backend

* Rate limit by IP
* Rate limit by user data
* Limit by country IP

### Flow: Customer's frontend -> Customer's backend -> Customer's frontend -> provider's backend

* Encrypt data by customer's secret key in customer's backend
* Customer's backend limits request by user's auth&#x20;
