Skip to main content

verify

@quik/storage


@quik/storage / LocalSignature / verify

Function: verify()

verify(token): object

Defined in: storage/src/utils/LocalSignature.ts:40

Verifies a local storage signed URL token and returns its path/purpose.

Parameters​

token​

string

Token previously produced by sign.

Returns​

object

path​

path: string

purpose​

purpose: QLocalSignaturePurpose

Throws​

StorageLocalSigningSecretMissingError when no signing secret is configured.

Throws​

StorageInvalidSignedURLError when the token is malformed or its signature does not match.

Throws​

StorageSignedURLExpiredError when the token has expired.