Skip to content

HAMUR_W5106: The single-use token store keeps tokens in one process

The single-use token store keeps tokens in one process. Warning HAMUR_W5106 belongs to @hamur/auth (5101 – 5200).

Message

text
HAMUR_W5106 @hamur/auth: single-use tokens and challenges count on the "session" mount (<driver>) in this process only; run one process, or <fix>

Cause

Single-use tokens and challenges count on the session mount in one process only (the driver is memory or fs). With several processes, a token could be used twice.

Fix

Run one process, or mount storage.session with a driver that counts atomically.