@uploadcare/upload-client
    Preparing search index...

    Type Alias AuthTokenProvider

    A resolver that can also be told the token it handed over is no longer good. AuthTokenCache from @uploadcare/signed-uploads/client is one, so an instance can be passed as authToken directly.

    invalidate is what lets this client recover from a token the Upload API refuses: without it, asking a cache for a token again returns the same one it just cached, and the retry fails identically.

    type AuthTokenProvider = {
        getToken: AuthTokenResolver;
        invalidate?: () => void;
    }
    Index

    Properties

    invalidate?: () => void

    Drop the cached token, so the next getToken() fetches a new one.