{"id":15433450,"url":"https://github.com/msalihaltun/elysia-jwt-example","last_synced_at":"2025-04-19T18:08:19.684Z","repository":{"id":192372052,"uuid":"686602406","full_name":"msalihaltun/elysia-jwt-example","owner":"msalihaltun","description":"JWT token based authentication API endpoints in Elysia.js, a web framework for Bun.js","archived":false,"fork":false,"pushed_at":"2023-09-14T13:09:11.000Z","size":30,"stargazers_count":17,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T09:54:34.487Z","etag":null,"topics":["bun","elysia","jwt","prisma"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/msalihaltun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-09-03T10:54:42.000Z","updated_at":"2025-04-06T21:17:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"d398af03-7072-42a8-8f35-518a190b60ff","html_url":"https://github.com/msalihaltun/elysia-jwt-example","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"bb13c6d59e47ba2fa39a53461a2722286daa16b2"},"previous_names":["msalihaltun/elysia-jwt-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msalihaltun%2Felysia-jwt-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msalihaltun%2Felysia-jwt-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msalihaltun%2Felysia-jwt-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msalihaltun%2Felysia-jwt-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msalihaltun","download_url":"https://codeload.github.com/msalihaltun/elysia-jwt-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249758404,"owners_count":21321519,"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":["bun","elysia","jwt","prisma"],"created_at":"2024-10-01T18:34:05.866Z","updated_at":"2025-04-19T18:08:19.677Z","avatar_url":"https://github.com/msalihaltun.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# elysia-jwt-example\nA tiny example that implements token based authentication in [bun](https://bun.sh/) and [elysia](https://elysiajs.com/).\n\nInspirations from [this blog post by Mihai-Adrian Andrei](https://dev.to/mihaiandrei97/jwt-authentication-using-prisma-and-express-37nk).\n\n## Try locally\n\n  - Install [bun](https://bun.sh/).\n  - Clone this repository.\n  - Run `bun i` to install the necessary packages.\n  - Run `bunx prisma generate` to initialize the sqlite database from the prisma [schema file](prisma/schema.prisma).\n  - Set environment variables\n    - `DATABASE_URL` (since I used sqlite this was set to `file:./dev.db`)\n    - `JWT_ACCESS_SECRET`\n    - `JWT_REFRESH_SECRET`\n  - Run `bun run dev` to start the application.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsalihaltun%2Felysia-jwt-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsalihaltun%2Felysia-jwt-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsalihaltun%2Felysia-jwt-example/lists"}