{"id":27314622,"url":"https://github.com/sambego/auth0-device-flow","last_synced_at":"2025-04-12T07:59:28.400Z","repository":{"id":229064155,"uuid":"650072739","full_name":"Sambego/auth0-device-flow","owner":"Sambego","description":"A simple JavaScript implementation to use the OAuth Device Authorization Grant with Auth0","archived":false,"fork":false,"pushed_at":"2023-06-06T13:27:56.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"0-start","last_synced_at":"2025-04-12T07:59:25.912Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CSS","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/Sambego.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}},"created_at":"2023-06-06T09:22:34.000Z","updated_at":"2023-10-10T15:17:42.000Z","dependencies_parsed_at":"2024-03-21T21:42:42.497Z","dependency_job_id":null,"html_url":"https://github.com/Sambego/auth0-device-flow","commit_stats":null,"previous_names":["sambego/auth0-device-flow"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sambego%2Fauth0-device-flow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sambego%2Fauth0-device-flow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sambego%2Fauth0-device-flow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sambego%2Fauth0-device-flow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sambego","download_url":"https://codeload.github.com/Sambego/auth0-device-flow/tar.gz/refs/heads/0-start","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248537090,"owners_count":21120701,"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-04-12T07:59:27.871Z","updated_at":"2025-04-12T07:59:28.381Z","avatar_url":"https://github.com/Sambego.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Get Started\n## Setup your Auth0 tenant and application\n- Create a free account on [auth0.com](https://auth0.com) if you don't have one already\n- Create a new \"native application\" called \"Device Flow\" in your Auth0 dashboard\n- Add `http://localhost:5173` as an allowed callback URL, allowed logout URL and allowed web origin. (If you're not using Vite or have changed the port, make sure to use your developement URL)\n- Enable the \"Allow Cross-Origin Authentication\" toggle\n- Under Advanced settings \u003e Grant Types, make sure \"Device Code\" is enabled\n\n## Run the application\n- run `npm install` to install all dependencies\n- copy the `.env.sample` file to `.env`\n- Add your Auth0 application's client ID and Domain to the `.env` file\n- run `npm run dev` to start a development server\n\n# Branches\nWhen following along with the video, there are multiple branches for each section of the video.\n- `0-start`: The basic scaffolding is ready to be used\n- `1-device-code`: We'll request a device and user code\n- `2-poll`: We start polling for tokens, which should be available once the user authenticates on their device\n- `3-user`: We'll display the user information once we have the tokens available\n- `4-connect`: We'll add a lightweight server to talk to a Raspberry Pi and open a connected lock when the user authenticates\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsambego%2Fauth0-device-flow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsambego%2Fauth0-device-flow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsambego%2Fauth0-device-flow/lists"}