User Token Correction

If using REST if have validated user token it has returned false AFTER that what should be my next move to correct it

I guess, you should login user again.

When im first trying to login the registered user error is not valid user token please relogin and when i am relogging in there’s an error as invalid username or password.But username and password are registered and legit.

This error means that you’re sending incorrect header “user-token”. Remove it from the request.

I havent included it in code sir,nowhere in my code is usertoken defined or used.

I have even printed token value via getUserToken() method and it is returning null.

Try to execute “logout” before making “login” call. Please, notify us about result.