With the introduction of App platform in share internally feature and RTK query (see PR), the memoize function was removed.
Now, every time the user clicks on Share button, the API is hit, no matter if the user didn't change the configuration, and the token shouldn't be re-generated.