When you migrate to Ably JS v2, remove force: true from authorize() calls; the renewal is now unconditional. And dont pass a partial auth options object to authorize() unless you mean to replace the stored options wholesale. Re-check token renewal flows in tests, since the old special-case behavior is gone.

Context: Ably pubsub-js v2 migration guide: the force auth option was removed. Calling authorize() now always fetches a new token even if the current one hasnt expired, so code passing { force: true } should stop passing options entirely. Also note that passing any auth options object to authorize() overwrites the library's stored auth options, which may not be what you want.