Onlyoffice Secret Key Issue

Hello !
I had the same issue and solved it.
In my local.json (/etc/onlyoffice/documentserver), it was written AuthorizationJwt instead of Authorization

    "inbox": {
      "header": "Authorization"
    },
    "outbox": {
      "header": "Authorization"
    }

So I had to write my secret key in this local.json and also default.json like this

                       "secret": {
                                "browser": {"string": "MYSECRETKEY", "file": "", "tenants": {}},
                                "inbox": {"string": "MYSECRETKEY", "file": "", "tenants": {}},
                                "outbox": {"string": "MYSECRETKEY", "file": ""},
                                "session": {"string": "MYSECRETKEY", "file": ""}
                        },
                        "token": {
                                "enable": {
                                        "browser": true,
                                        "request": {
                                                "inbox": true,
                                                "outbox": true
                                        }
                                },
                                "browser": {
                                        "secretFromInbox": true
                                },
                                "inbox": {
                                        "header": "Authorization",
                                        "prefix": "Bearer ",
                                        "inBody": true
                                },
                                "outbox": {
                                        "header": "Authorization",
                                        "prefix": "Bearer ",
                                        "algorithm": "HS256",
                                        "expires": "5m",
                                        "inBody": true
                                },
                                "session": {
                                        "algorithm": "HS256",
                                        "expires": "30d"
                                }
                        },

Then supervisorctl restart all
i hope it will help you !