Skip to content

Commit

Permalink
Add a missing " in the pseudocode (#1361)
Browse files Browse the repository at this point in the history
  • Loading branch information
vvmuysew authored Mar 13, 2024
1 parent 92317f4 commit 5d5492d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ hmac = hmac("SHA256", secret, message) // Generate the HMAC hash
csrfToken = hmac + "." + message // Combine HMAC hash with message to generate the token. The plain message is required to later authenticate it against its HMAC hash
// Store the CSRF Token in a cookie
response.setCookie("csrf_token=" + csrfToken + "; Secure) // Set Cookie without HttpOnly flag
response.setCookie("csrf_token=" + csrfToken + "; Secure") // Set Cookie without HttpOnly flag
```

### Naive Double-Submit Cookie Pattern (DISCOURAGED)
Expand Down

0 comments on commit 5d5492d

Please sign in to comment.