{"id":15504291,"url":"https://github.com/kentcdodds/epic-stack-with-csrf","last_synced_at":"2025-04-23T00:08:32.146Z","repository":{"id":175501807,"uuid":"653825885","full_name":"kentcdodds/epic-stack-with-csrf","owner":"kentcdodds","description":"An example of the Epic Stack with CSRF protection on forms","archived":false,"fork":false,"pushed_at":"2023-06-20T14:03:16.000Z","size":4810,"stargazers_count":12,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-23T00:08:27.714Z","etag":null,"topics":["epic-stack","epic-stack-example"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kentcdodds.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-14T20:26:15.000Z","updated_at":"2024-02-24T19:05:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"d1c1f47e-de0f-4653-8181-a1fd89248396","html_url":"https://github.com/kentcdodds/epic-stack-with-csrf","commit_stats":null,"previous_names":["kentcdodds/epic-stack-with-csrf"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fepic-stack-with-csrf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fepic-stack-with-csrf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fepic-stack-with-csrf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fepic-stack-with-csrf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kentcdodds","download_url":"https://codeload.github.com/kentcdodds/epic-stack-with-csrf/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250343945,"owners_count":21415040,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["epic-stack","epic-stack-example"],"created_at":"2024-10-02T09:17:04.634Z","updated_at":"2025-04-23T00:08:32.112Z","avatar_url":"https://github.com/kentcdodds.png","language":"TypeScript","readme":"# Epic Stack with CSRF Protection\n\nThis is an example of how to integrate the\n[`remix-utils`](https://github.com/sergiodxa/remix-utils) package utilities for\n[Cross-Site Request Forgery (CSRF)](https://en.wikipedia.org/wiki/Cross-site_request_forgery)\nprotection with the Epic Stack. The easiest way to explore the example is to\npull up\n[the commit history](https://github.com/kentcdodds/epic-stack-with-csrf/commits/main).\n\nFollowing the steps laid out in the Remix Utils docs is sufficient for this:\n\n1. Install `remix-utils`\n2. Generate the authenticity token in the `root.tsx` loader (be certain to\n   commit the session to set the cookie)\n3. Wrap the App in the `\u003cAuthenticityTokenProvider /\u003e` and provide the token\n4. Render a Form with the `\u003cAuthenticityTokenInput /\u003e` component\n5. Verify in the Action using `verifyAuthenticityToken` and the session.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentcdodds%2Fepic-stack-with-csrf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkentcdodds%2Fepic-stack-with-csrf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentcdodds%2Fepic-stack-with-csrf/lists"}