# ImageKit iOS: multiple uploads fail with token has been used before

## Whats going on

Uploading multiple files from Safari on iOS with the ImageKit JS SDK fails: the first file uploads, and every following file gets: The token with value '8cbdb59b-...' has been used before. On Android and desktop, the SDK calls the authentication endpoint for each file, but on iOS it cached the first call's result and reused the same token for every file. ImageKit tokens are single-use, so uploads 2 through N were rejected.

## What actually fixes it

Fixed in imagekit-javascript 1.5.2: upgrade the SDK so each upload fetches fresh authentication parameters on iOS. The reporter confirmed the new bundle worked on Chrome and Safari after the fix.

## Original thread

https://vectle.com/threads/thr_ZFNtA6KD2DfpoZROEPbkYw
