{"id":21959055,"url":"https://github.com/itaibo/reddit-oauth2-flow","last_synced_at":"2026-04-13T03:44:54.845Z","repository":{"id":42471668,"uuid":"464529813","full_name":"itaibo/reddit-oauth2-flow","owner":"itaibo","description":"Next.js application to get Reddit tokens for CLI apps","archived":false,"fork":false,"pushed_at":"2022-04-04T10:07:40.000Z","size":342,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-07-23T02:47:01.618Z","etag":null,"topics":["cli","login","nextjs","oauth2","reddit","token","ui"],"latest_commit_sha":null,"homepage":"https://reddit-oauth2-flow.vercel.app","language":"JavaScript","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/itaibo.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}},"created_at":"2022-02-28T15:08:16.000Z","updated_at":"2022-03-01T18:33:42.000Z","dependencies_parsed_at":"2022-09-08T18:31:15.799Z","dependency_job_id":null,"html_url":"https://github.com/itaibo/reddit-oauth2-flow","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/itaibo/reddit-oauth2-flow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itaibo%2Freddit-oauth2-flow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itaibo%2Freddit-oauth2-flow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itaibo%2Freddit-oauth2-flow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itaibo%2Freddit-oauth2-flow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itaibo","download_url":"https://codeload.github.com/itaibo/reddit-oauth2-flow/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itaibo%2Freddit-oauth2-flow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280756326,"owners_count":26385307,"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-10-24T02:00:06.418Z","response_time":73,"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":["cli","login","nextjs","oauth2","reddit","token","ui"],"created_at":"2024-11-29T09:19:09.864Z","updated_at":"2025-10-24T07:15:42.942Z","avatar_url":"https://github.com/itaibo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Reddit OAuth2 Flow\nNext.js application to get Reddit tokens using their [OAuth2 specification](https://github.com/reddit-archive/reddit/wiki/OAuth2)\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fitaibo%2Freddit-oauth2-flow)\n\n\u003cimg width=\"75%\" src=\"./assets/screenshot.png\"\u003e\n\n## Why use this?\nWhen creating a CLI application, you need your user's token to manage their Reddit account. This UI lets your user get their token in a friendly and easy way. Then, they can copy/paste their token into your application\n\n## Configuration\nTo work properly, some environment variables are required. You will need to [create a Reddit app](https://www.reddit.com/prefs/apps)\n\n|Environment variable|Description|\n|---|---|\n|`NEXT_PUBLIC_REDDIT_CLIENT_ID`|Your Reddit's app client id|\n|`REDDIT_CLIENT_SECRET`|Your Reddit's app client secret|\n|`NEXT_PUBLIC_REDIRECT_URI`|Your Reddit's app redirect uri, that must be the same as the URL you are deploying this application to. Remember to append `/callback`. Will look like `https://your-deployment.vercel.app/callback`|\n|`NEXT_PUBLIC_TOKEN_DURATION`|Either `temporary` or `permanent`. Learn more in the [Reddit OAuth2 specification](https://github.com/reddit-archive/reddit/wiki/OAuth2#authorization)|\n|`NEXT_PUBLIC_TOKEN_SCOPE`|A space separated list of scope string. Get the list of scopes and learn more in the [Reddit OAuth2 specification](https://github.com/reddit-archive/reddit/wiki/OAuth2#authorization)|\n\n## Contributing\nContributions are welcomed!\n\n## Attribution\nIf you deploy the app, or create your own customizations, please consider keeping the attribution to this repository located in the footer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitaibo%2Freddit-oauth2-flow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitaibo%2Freddit-oauth2-flow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitaibo%2Freddit-oauth2-flow/lists"}