
I'm working on a new project using Appwrite as a backend. I have some experience with it, and i use it for some of my personal and hobby projects and for the first time, I'm building something customer facing with Appwrite. I'm building an API first service, using excellent FastAPI library as API for users. I hooked up frontend to Appwrite and on Appwrite side I'm using auth, Database, Storage and functions to manage stored files. API works with files where user uploads a file, and performs operations on it, some are fairly heavy and async with Celery. What I want to achieve is when user registers and creates an account, user would go to account settings and generate an API key (standard JWT) to authenticate each API call to API (upload files, process files, see current usage stats etc), and I can't figure out exactly how to do that. I tried create_token function from SDK but it's not working as expected. I can't seem to find any docs around this specific usecase. So to summarize; user creates account -> opens account settings -> generates JWT from Appwrite backend -> JWT doesn't expire (like OpenAI API for example or multitude of other REST API services) -> user uses JWT to authenticate endpoint interactions. Is that doable with Appwrite?
Recommended threads
- SSO google apple not working anymore
We use Apple and Google sso in our react native app. Everything worked fine until we noticed today that we see general argument error. We did not change anythi...
- Origin error after changing default port...
Hi! I need some help regarding an issue I’m facing with Appwrite after changing the default ports. I have a self-hosted Appwrite instance running on my VPS. I ...
- Opened my website after long time and Ba...
I built a website around a year back and and used appwrite for making the backend. At that time the website was working fine but now when i open it the images a...
