Verify a one-way token for the user sign-in
The method validateToken checks if the entered token is valid for the entered user.
The entered token needs to be at least 32 and at most 50 characters long. The token is invalid if there is no entry for the entered user or the validity of the token has already expired.
If the token is valid, the call up returns the boolean value true, otherwise false is returned.
In case the requested user does not exist, the token length is insufficient or the entered validity period is invalid, an error message will be returned.
Method reference
Return value: bool; true, if the entered login token for the entered user exists and its validity period has not yet expired, otherwise false