Documentation
¶
Overview ¶
Package verificationtest checks a VerificationStore against the contract every verification store must keep, so a custom store proves itself with one call rather than by finding out in production that a reset link worked twice. The core's SQL and memory stores and contrib/redis run it.
It imports only the standard library and the core, so a store's own tests can use it whatever else they depend on.
Index ¶
Constants ¶
const ( PurposeA auth.Purpose = "verificationtest_a" PurposeB auth.Purpose = "verificationtest_b" )
PurposeA and PurposeB are the purposes every case files its tokens under, exported so a store on a shared table can clear them before each case (the cases reuse token hashes, which the SQL table keeps unique).
const Racers = 8
Racers is how many goroutines spend one token at once in the single-use case: enough to interleave on any store, few enough for SQLite's single writer.
Variables ¶
This section is empty.