sign
@quik/storage / LocalSignature / sign
Function: sign()
sign(
payload,expiresInSeconds):string
Defined in: storage/src/utils/LocalSignature.ts:25
Signs a local storage path/purpose pair into a time-limited, tamper-proof token.
Parameters
payload
Path and purpose the token grants access to.
path
string
purpose
expiresInSeconds
number
Number of seconds until the token expires.
Returns
string
Throws
StorageLocalSigningSecretMissingError when no signing secret is configured.