Fix refresh token when executing from command line