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
- Error: User (role: guests) missing scope...
I want to send a verification code to the user and the given phone number and check it and create a session right after the user entered the secret. For me that...
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Realtime with multiple connections
I need the Realtime on multiple Collections for diffrent applicational logic. So my question is: Is there a way to have only 1 Websocket connection or do I need...