set localStorage for apitoken