{"id":24087938,"url":"https://github.com/tinybirdco/guide-nextjs-jwt-auth","last_synced_at":"2026-05-13T18:05:35.452Z","repository":{"id":242091772,"uuid":"807710787","full_name":"tinybirdco/guide-nextjs-jwt-auth","owner":"tinybirdco","description":"Demo of consuming Tinybird API Endpoints in Next.js with self-signed JWTs","archived":false,"fork":false,"pushed_at":"2024-07-26T16:30:49.000Z","size":139,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-10T03:56:02.359Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://guide-nextjs-jwt-auth.vercel.app/","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/tinybirdco.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":"2024-05-29T16:17:53.000Z","updated_at":"2024-07-26T16:30:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"226860c3-7388-43da-92ad-5fd49cb98e63","html_url":"https://github.com/tinybirdco/guide-nextjs-jwt-auth","commit_stats":null,"previous_names":["tinybirdco/guide-nextjs-jwt-auth"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinybirdco%2Fguide-nextjs-jwt-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinybirdco%2Fguide-nextjs-jwt-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinybirdco%2Fguide-nextjs-jwt-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinybirdco%2Fguide-nextjs-jwt-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinybirdco","download_url":"https://codeload.github.com/tinybirdco/guide-nextjs-jwt-auth/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240982504,"owners_count":19888514,"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":[],"created_at":"2025-01-10T03:56:16.002Z","updated_at":"2026-05-13T18:05:30.408Z","avatar_url":"https://github.com/tinybirdco.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Consume Tinybird API Endpoints in Next.js with JWTs\n\nThis repo contains a minimal example demonstrating:\n\n1. Generating self-signed JWTs for Tinybird\n2. Consuming Tinybird API Endpoints in a Next.js frontend app using a self-signed JWT\n\nYou can read more about JWTs in Tinybird in the [documentation](https://www.tinybird.co/docs/concepts/auth-tokens#json-web-tokens-jwts), and there is a full [end-to-end guide](https://www.tinybird.co/docs/guides/integrate/consume-apis-nextjs) covering this example.\n\n## Run the example locally\n\n### Prerequisites\n\n- Node.js \u003e= v18\n- A [free Tinybird account](https://tinybird.co)\n- Deploy the [Tinybird resources](/tinybird) to a Tinybird Workspace\n\n### Install dependencies\n\nInstall app dependencies. From the root of the repo:\n\n```bash\npnpm install\n```\n\n### Add your Tinybird parameters\n\nFirst create a new file `.env.local`\n```bash\ncp .env.example .env.local\n```\n\nYou need to copy your Tinybird host and token to the `.env.local` file in your directory:\n\n```bash\nTINYBIRD_SIGNING_TOKEN=\"YOUR SIGNING TOKEN\" # Use your Admin Token as the signing token\nTINYBIRD_WORKSPACE=\"YOUR WORKSPACE ID\" # The UUID of your Workspace\nNEXT_PUBLIC_TINYBIRD_HOST=\"YOUR API HOST. E.G. https://api.tinybird.co\" # Your regional API host\n```\n\n### Run the demo app\n\nRun it locally:\n\n```bash\npnpm run dev\n```\n\nThen open [http://localhost:3000](http://localhost:3000) with your browser.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinybirdco%2Fguide-nextjs-jwt-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinybirdco%2Fguide-nextjs-jwt-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinybirdco%2Fguide-nextjs-jwt-auth/lists"}