{"message":"missing or malformed jwt"}

Hello,

I am trying to configure Vikunja with docker but I have some problems with the JWT.
This is my compose file:

version: '3'

services:
    api:
        image: vikunja/api
        container_name: VIKUNJA_API
        environment:
            VIKUNJA_DATABASE_HOST: *********
            VIKUNJA_DATABASE_PASSWORD: *********
            VIKUNJA_DATABASE_TYPE: mysql
            VIKUNJA_DATABASE_USER: *********
            VIKUNJA_DATABASE_DATABASE: *********
            VIKUNJA_SERVICE_JWTSECRET: iXItirva6Gk28FXoWRVQPHCMCvdYwFAR
            VIKUNJA_SERVICE_FRONTENDURL: *********
        ports:
            - 3456:3456
        volumes:
            - ./files:/app/vikunja/files
        restart: unless-stopped
        networks:
            DockerVLAN:
                ipv4_address: 10.0.17.134
    frontend:
        image: vikunja/frontend
        container_name: VIKUNJA_FE
        ports:
            - 80:80
        environment:
            VIKUNJA_API_URL: http://10.0.17.134:3456/api/v1
        restart: unless-stopped
        networks:
            DockerVLAN:
                ipv4_address: 10.0.17.135
networks:
    DockerVLAN:
        external: true

When I start the docker-compose, the FE works fine but looks like there is a problem with the API. Also, if I try to access to the api like: http://10.0.17.134:3456/api/v1
I have the following error:

{
  "message": "missing or malformed jwt"
}

Maybe it is related with the jwt format? There is some requirements?

Just to confirm the connectivity, I tried the nc to the API port and worked fine:

/usr/share/nginx/html # nc -vz 10.0.17.134 3456
10.0.17.134 (10.0.17.134:3456) open

Can someone help me with this topic please?

Thanks!

Solved, the JWTSECRET must be between " ".

Regards,

That’s expected, because the browser does not provide a JWT in requests by default. It is unrelated to what you set as a jwt secret.