Replies: 1 comment 7 replies
-
What adapter are you using? If you use Express you can check for the auth cookie in your static file handler. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It's pretty easy to serve static files inside of the public folder, but I'm using remix-auth, and I'd like to serve a static file only if the user has been authenticated.
It's somewhat easy to do by reading the entire file into an
ArrayBuffer
and then constructing a response with theArrayBuffer
, but ideally, I'd be able to serve the file with support for things like range requests, and theArrayBuffer
technique makes this impossible.Beta Was this translation helpful? Give feedback.
All reactions