Skip to content

Commit a5b227e

Browse files
committed
Clarify CSRF token reuse wording
1 parent ddc3942 commit a5b227e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,14 @@ return [
144144
In case Yii framework is used along with config plugin, the package is [configured](./config/di-web.php)
145145
automatically to use synchronizer token and masked decorator. You can change that depending on your needs.
146146

147-
Use synchronizer token for sensitive anonymous forms or tokens that must be one-time or revocable; use HMAC token for
148-
authenticated-only forms when a short token replay window is acceptable.
147+
Use synchronizer token for sensitive anonymous forms; use HMAC token for authenticated-only forms when a submitted
148+
token may stay valid for a few minutes.
149149

150150
```mermaid
151151
flowchart TD
152152
A{Anonymous forms to protect?}
153153
A -- Yes --> S[Synchronizer]
154-
A -- No --> B{Need one-time or revocable tokens?}
154+
A -- No --> B{Old or repeated submits must fail?}
155155
B -- Yes --> S
156156
B -- No --> C{Per-environment secret key?}
157157
C -- No --> S

0 commit comments

Comments
 (0)