20, above the Web NFC scanner (0) and the manual source (-10), so a page opened by a tap resolves from its own URL before any scan starts.
Two landing shapes parse into one tap:
- The page is the chip URL itself - an Endstate-hosted page at
/verify/{chip_id}?e=or/u/{chip_id}?e=. - A page you host behind an Endstate redirect - it receives
endstate_pathId(the chip id) andendstate_eas query parameters on its own URL.endstate_chip_idis accepted as an alias for the id, andendstate_cis forwarded when present.
@endstate-sdk/core can never disagree about what a tap looks like.
Example
url to read from somewhere other than the current page - a router-held location, or a fixture in a test:
Parameters
RedirectTapSourceOptions
Optional configuration.
() => string
Where the landing URL is read from. Defaults to the current page
(
window.location.href, or an empty string when there is no window).Returns
object
required
A source named
redirect with priority REDIRECT_TAP_SOURCE_PRIORITY (20).
Its isAvailable() reports whether the current URL parses to a tap;
capture() returns the parsed TapResult, or null when the URL carries no
tap.number
required
The source’s priority,
20. Exported for interfaces that order or compare
sources themselves.
