token expire logic handling