Skip to content

Commit

Permalink
Merge pull request #49 from curveball/csrf-warning
Browse files Browse the repository at this point in the history
Emit warning if getCsrf is called too late.
  • Loading branch information
evert committed Oct 4, 2023
2 parents effcd25 + 8607bbc commit 7c9343e
Show file tree
Hide file tree
Showing 5 changed files with 1,091 additions and 2,205 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"env": {
"browser": true,
"node": true,
"es6": true
"es6": true,
"mocha": true
},
"extends": [
"eslint:recommended",
Expand Down Expand Up @@ -61,7 +62,6 @@
"args": "none"
}],
"@typescript-eslint/prefer-for-of": ["error"],
"@typescript-eslint/prefer-optional-chain": ["error"],
"@typescript-eslint/prefer-ts-expect-error": ["error"]
}
}
9 changes: 9 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
Changelog
=========

0.10.0 (????-??-??)
-------------------

* The `getCsrf` function is no longer an async function, and returns the token
immediately.
* A warning is now emitted if `getCsrf` is called after the session has already
been stored.


0.9.0 (2023-02-14)
------------------

Expand Down
Loading

0 comments on commit 7c9343e

Please sign in to comment.