Media / foldkit-media/server

UploadUnauthenticated

class · packages/media/src/server/upload.ts:77

class UploadUnauthenticated extends Schema.TaggedError<UploadUnauthenticated>()(
  'UploadUnauthenticated',
  {},
  { httpApiStatus: 401 },
) {}

The policy could not tell who is asking (an untrusted origin, a session that ended), so the client should sign in again rather than give up.

In the guides