Workaround for token mismatch error on server session timeout for config and http authentication types

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>