Skip to content

Auth AM API user

Authorization of AM API user

To get the value of request header x-am-authorization, use g.req.auth.authAMUser.

const am_api_user_auth = g.req.auth.authAMUser;

Get token of API user

1
2
3
4
5
6
7
{
    "authTokenType": "AM",
    "authTokenAM": {
        "u": "API_user_username",
        "p": "API_user_password"
    }
}