Cell API
    Preparing search index...

    Interface SignOptions

    interface SignOptions {
        algorithm?: Algorithm;
        audience?: string | string[];
        encoding?: string;
        expiresIn?: string | number;
        header?: JwtHeader;
        issuer?: string;
        jwtid?: string;
        keyid?: string;
        mutatePayload?: boolean;
        notBefore?: string | number;
        noTimestamp?: boolean;
        subject?: string;
    }

    Hierarchy

    • SignOptions
      • SignOptions
    Index
    algorithm?: Algorithm

    Signature algorithm. Could be one of these values :

    • HS256: HMAC using SHA-256 hash algorithm (default)
    • HS384: HMAC using SHA-384 hash algorithm
    • HS512: HMAC using SHA-512 hash algorithm
    • RS256: RSASSA using SHA-256 hash algorithm
    • RS384: RSASSA using SHA-384 hash algorithm
    • RS512: RSASSA using SHA-512 hash algorithm
    • ES256: ECDSA using P-256 curve and SHA-256 hash algorithm
    • ES384: ECDSA using P-384 curve and SHA-384 hash algorithm
    • ES512: ECDSA using P-521 curve and SHA-512 hash algorithm
    • none: No digital signature or MAC value included
    audience?: string | string[]
    encoding?: string
    expiresIn?: string | number

    expressed in seconds or a string describing a time span zeit/ms. Eg: 60, "2 days", "10h", "7d"

    header?: JwtHeader
    issuer?: string
    jwtid?: string
    keyid?: string
    mutatePayload?: boolean
    notBefore?: string | number

    expressed in seconds or a string describing a time span zeit/ms. Eg: 60, "2 days", "10h", "7d"

    noTimestamp?: boolean
    subject?: string