New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/net: add xsrftoken.ValidFor #41438
Comments
Looks like the package was originally written by @adg , so, any opinions? |
SGTM |
Based on the discussion above, this seems like a likely accept. |
No change in consensus, so accepted. |
Change https://golang.org/cl/260317 mentions this issue: |
dmitshur
changed the title
proposal: x/net: add xsrftoken.ValidFor
x/net: add xsrftoken.ValidFor
Oct 7, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The
xrsftoken.Valid
function checks whether a token generated byxsrftoken.Generate
was created within the last 24 hours. Some services need to restrict tokens to shorter periods of time.I propose a new function:
The text was updated successfully, but these errors were encountered: