educative.io

Where is the api_dev_key stored and how it is matched with userid

Is the api_dev_key generated at the time of user registration. ?
Where this api_dev_key is stored and then after api call matched with userid and then sent to db ?

1 Like

@Design_Gurus please help with this.

api_dev_key (also know as developers key) is used for authentication. There can be multiple keys per developer account, generally there is only one key for each account. These keys are mostly generated at the developer’s request and stored in the database. If there is only one key per developer, we can store it in the user’s table and for multiple keys, we can store them in a separate table.

2 Likes