Changing Sensu Go agent password


I’d like to change the Sensu Go agent password (I think):

# authentication configuration
user: "agent"
password: "P@ssw0rd!"

However, whenever I change the password, the agent can’t communicate with the back-end:

{"component":"agent","error":"handshake failed with status 401: bad credentials\n","level":"error","msg":"reconnection attempt failed","time":"2021-10-13T17:32:42+02:00"}

How do I configure this on the back-end to allow a different password?
Should this password be changed (for security reasons)?

Best regards,