Hi,
I would like to allow admin user to be able to go to Mattermost, without needing to log in manually.
I am trying to do this by logging in the user by calling /api/v4/users/login using login_id and password via command line, and getting the Id, Token in the header. In my application, I then set these 2 cookies:
MMUSERID cookie, with path of /, expires in 30 days, secure: true, httponly: true and the value of id.
MMAUTHTOKEN cookie, with path of /, expires in 30 days, secure: true, httponly: true and the value of token.
When I reload the browser page, it still goes to login page.
What step am I missing?