Function verifyAccountId

  • Asserts that the two given IDs are identical. To be used when a request tries to access a resource to ensure they're not accessing someone else's data.

    Parameters

    • Optional input: string

      Input ID.

    • Optional expected: string

      Expected ID.

    Returns asserts expected is string