Reference Source Test
public class | source

VerifyHeader

Test:

Static Method Summary

Static Public Methods
public static

computeSignature(payload: *, secret: *): *

public static

parseHeader(header: *, scheme: *): *

public static

verify(_payload: *, _header: *, secret: *, tolerance: *): boolean

Static Public Methods

public static computeSignature(payload: *, secret: *): * source

Params:

NameTypeAttributeDescription
payload *
secret *

Return:

*

public static parseHeader(header: *, scheme: *): * source

Params:

NameTypeAttributeDescription
header *
scheme *
  • optional
  • default: EXPECTED_SCHEME

Return:

*

Test: