0a797261

By: Michael Lynch <git@mtlynch.io>

Make login handler tests table driven by token store state

Add used-state to LoginEntry so tests can describe submitted login tokens against the tokens present in the store. This keeps login handler cases legible from the table rows while preserving the routed HTTP request path.

Inject the server clock through handlers.New so tests use a fixed time for expiration behavior.