Realm Login issue showing error 601 "INVALID PARAMETER - your request parameter did not validate"


I am getting the above error when i try to login with Realm in android application.I am using JWT authentication and providing the same jwt token to the realm which I am getting from the auth server.Can anybody assist me with this as to why this error is coming after i upgraded from realm version 3.3.2 to latest version 5.