{"id":30768182,"url":"https://github.com/rwx222/nextjs-csrf-token","last_synced_at":"2026-05-18T15:06:05.138Z","repository":{"id":253152182,"uuid":"842262041","full_name":"rwx222/nextjs-csrf-token","owner":"rwx222","description":"Next.js and csrf tokens","archived":false,"fork":false,"pushed_at":"2025-07-15T20:43:03.000Z","size":253,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-16T18:54:43.155Z","etag":null,"topics":["csrf","csrf-tokens","edge","edge-runtime","middleware","nextjs"],"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/rwx222.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,"zenodo":null}},"created_at":"2024-08-14T02:02:58.000Z","updated_at":"2025-07-15T20:43:07.000Z","dependencies_parsed_at":"2024-08-14T20:14:17.834Z","dependency_job_id":"266e62b2-102c-43d2-a7fb-7cd2ec445f5b","html_url":"https://github.com/rwx222/nextjs-csrf-token","commit_stats":null,"previous_names":["andresdotsh/nextjs-csrf-token","rwx222/nextjs-csrf-token"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rwx222/nextjs-csrf-token","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwx222%2Fnextjs-csrf-token","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwx222%2Fnextjs-csrf-token/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwx222%2Fnextjs-csrf-token/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwx222%2Fnextjs-csrf-token/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rwx222","download_url":"https://codeload.github.com/rwx222/nextjs-csrf-token/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwx222%2Fnextjs-csrf-token/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273670032,"owners_count":25147069,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["csrf","csrf-tokens","edge","edge-runtime","middleware","nextjs"],"created_at":"2025-09-04T20:35:42.179Z","updated_at":"2026-05-18T15:06:00.112Z","avatar_url":"https://github.com/rwx222.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"This project is a code example where the `@edge-csrf/core` library is implemented along with `Next.js` to generate and validate `CSRF tokens`.\n\nImportant files:\n\n- `/src/constants.ts`\n- `/src/utils/csrfTokens.ts`\n- `/src/middleware.ts`\n- `/src/actions/deleteCsrfCookieAction.ts`\n- `/src/app/api/login/route.ts`\n- `/src/app/components/Login/Login.tsx`\n- `/src/app/page.tsx`\n\n## Details\n\n👨‍💻 dev.to [post](https://dev.to/rwx222/csrf-tokens-in-nextjs-3mlb).\n\n## Run the project\n\nInstall dependencies\n\n```bash\nyarn install\n```\n\nRun the development server:\n\n```bash\nyarn dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frwx222%2Fnextjs-csrf-token","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frwx222%2Fnextjs-csrf-token","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frwx222%2Fnextjs-csrf-token/lists"}