Skip to content

What to do in case token expires #5

@mebjas

Description

@mebjas

csrf token has an expiry time. let us assume its 5 minutes. And after loading a page, user did spend 5 minutes somewhere else before making another request.

Now when user makes a request, say he submits a form, the js code fetches the token from cookie before submitting the form. So what need to be done in this case?

Possible solutions:

  1. issue a quick xhr request to request for token refresh
  2. let the request proceed without a token and let ir fail ??? :octocat:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions