AUTHENTICATION_FAILED

The process could not be completed because the authentication failed.

This typically means either the user no longer has access to the document or the authentication token (JWT) expired. Your own server should be able to say if the user still has access. If the user still has access, obtain a new authentication token from your server and call reauthenticateWithJwtAsync on your document. If the user no longer has access, stop showing this document to the user.

Note that the document’s storage will not be removed from disk! You can still access that document, and even continue to make edits to it. These will, however, not be synced anymore.

You need to obtain a new authentication token, and retry your operation. Until then, anything that would hit the Instant Server (PSPDFKit Document Engine) will fail again.