Auth token error

Hi, I have a react native project using expo typescript, while creating the upload client the issue is that the auth token expires after some time, the upload will work initially but after some time it will show error that jwt token is not correct.
I am using uppy react supabse code given in the resumable upload docs.

https://supabase.com/docs/guides/storage/uploads/resumable-uploads?queryGroups=language&language=react

How to approach this, is there any way to reinitialise or update the client after the auth token changes, and I also had a doubt that if the auth token changes in between the upload what will happen in that case.
Learn how to upload files to Supabase Storage.
Was this page helpful?