Function getSecurity

  • Returns Filestack base64 policy and HMAC-SHA256 signature

    Example

    import * as filestack from 'filestack-js';

    const jsonPolicy = { 'expiry': 253381964415 };
    const security = filestack.getSecurity(jsonPolicy, '<YOUR_APP_SECRET>');

    Parameters

    Returns Security