According to the documentation, we can insert jwt token in REST API using the headers. But I am curious that is it possible to put that jwt token in query parameters of URL?
Reason: In my case I want to access a private file from Appwrite storage. To access this it requires to have jwt token when requesting to access this file. For example, I want to stream a video file from storage. However, I currently using the video player flutter package, this package does not support to add headers on url. Hence the another solution I am thinking right now is the jwt token will be inserted on query parameters instead.
There was plan to do something like that, but it was put on hold (and may be scrapped) because JWT tokens are sensitive and URLs are not good places to put sensitive data.
What package are you using for video player?
and what platform is your app running on?
Windows platform
and what package?
heh...ya...
I am planning to use media kit but I do not have time, but thanks for the help.
ya...media_kit sounds like a better solution
Recommended threads
- All function deployments fail (node 18-2...
Error: bash: /usr/local/server/helpers/build-cache.sh: No such file or directory Sidecar error: Build archive was not created at /mnt/code/code.tar.gz Scope: ...
- Database Write Limits hit
Hello Appwrite Admins, I'm a GitHub Education user, and about a week ago, my database was really badly optimized, resulting in about 600k writes in a single day...
- Help: Domain krtrim.tech Blocked on Fast...
Hi, I'm trying to add my domain krtrim.tech (and subdomain) in Appwrite, but I'm getting this error: Failed to add domain to Fastly: {"msg":"Bad request","deta...