Skip to content

Commit

Permalink
remove todos
Browse files Browse the repository at this point in the history
  • Loading branch information
psibean committed Apr 7, 2024
1 parent b60ee3c commit ff35b47
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ export function doubleCsrf({
// This should be used in routes or middleware to provide users with a token.
// The value returned from this should ONLY be sent to the client via a response payload.
// Do NOT send the csrfToken as a cookie, embed it in your HTML response, or as JSON.
// TODO: next major update, breaking change, combine extra params as a single object parameter
const generateToken: CsrfTokenCreator = (
req: Request,
res: Response,
Expand Down Expand Up @@ -173,7 +172,6 @@ export function doubleCsrf({
};

const doubleCsrfProtection: doubleCsrfProtection = (req, res, next) => {
// TODO: next major update, breaking change, make a single object parameter
req.csrfToken = (options: GenerateCsrfTokenOptions) =>
generateToken(req, res, options);
if (ignoredMethodsSet.has(req.method as RequestMethod)) {
Expand Down

0 comments on commit ff35b47

Please sign in to comment.