an authentication error has occurred the token supplied to the function is invalid
in xrdp 0.9.8 TLSv1.2 and TLSv1.3 is added by default.
in older version of windows system TLSv1.3 was not supported. thats why it is not connecting with xrdp server.
To resolve this issue from server side follow the steps below.
1. Login to xrdp server.
2. navigate to xrdp configuration file location,
3. Restart xrdp service.
$ service xrdp restart