Skip to content

Create new token when token is invalid and validateOnReuse is true #116

@marvin-wtt

Description

@marvin-wtt

With the current behavior, the user is stuck in an invalid state once the CSRF-Token is invalid and override is false.

My proposal is to not throw an exception and return a new, valid token instread.

https://github.com/Psifi-Solutions/csrf-csrf/blob/main/src/index.ts#L82

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions