You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This method generates a random string, stores it in the session and returns it. Use the CSRF token to prevent [cross site request forgery](https://owasp.org/www-community/attacks/csrf).
218
217
219
218
### Example usage in `getServerSideProps()`
220
219
This generates a CSRF token that can be passed with any forms or requests to the API.
0 commit comments