What I’m trying to do:
Hi all, first time poster
I’m building an app that queries a Notion database (notion.so). To achieve this, I created an integration token in Notion and use it for my API calls. I want to avoid hard-coding this integration token in the server code, so naturally I thought of the following options:
- Store it as a ‘secret’.
- Prompt the user for the integration token, encrypt, store in the database. Decrypt when needed for the API calls.
My current plan is to use Option 2 since I want this app to be usable by others. However, I wonder if there’s a more elegant way to do this. Specifically if there’s a UI akin to the attached image.
Thoughts?