an authentication error has occurred the token supplied to the function is invalid

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,

$cd /etc/xrdp
$vim xrdp.ini

replace
ssl_protocols=TLSv1.2, TLSv1.3
with
ssl_protocols=TLSv1, TLSv1.1

3. Restart xrdp service.
$ service xrdp restart