
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
- Golang docs outdated
Golang docs on the website are update and some if not all methods are broken/ not updated
- Problem with login using Retool
I am using the Appwrite rest api to create an email session from Retool. My next api call is to create JWT. The call is failing because Retool is a closed envir...
- Adding Attributes to User
What is the best way to add attributes for a User? Do I need to create another entity with the attributes since I cant add them in the Auth service. Thx
