{"id":15285900,"url":"https://github.com/nexys-system/oauth","last_synced_at":"2026-05-08T08:12:32.170Z","repository":{"id":43148223,"uuid":"389765731","full_name":"nexys-system/oauth","owner":"nexys-system","description":"simple oauth wrapper","archived":false,"fork":false,"pushed_at":"2024-04-03T23:13:08.000Z","size":256,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T04:35:59.545Z","etag":null,"topics":["github","gitlab","google","microsoft","nexys","oauth2","swissid","typescript","zoho"],"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/nexys-system.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":"2021-07-26T20:55:14.000Z","updated_at":"2022-12-01T17:05:05.000Z","dependencies_parsed_at":"2024-12-02T00:15:15.602Z","dependency_job_id":null,"html_url":"https://github.com/nexys-system/oauth","commit_stats":{"total_commits":91,"total_committers":3,"mean_commits":"30.333333333333332","dds":0.5494505494505495,"last_synced_commit":"8eb4824dbf9b855d163e5bbbf1ad1683cddcaf19"},"previous_names":[],"tags_count":35,"template":false,"template_full_name":"Nexysweb/boilerplate-node-package","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nexys-system%2Foauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nexys-system%2Foauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nexys-system%2Foauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nexys-system%2Foauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nexys-system","download_url":"https://codeload.github.com/nexys-system/oauth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245168912,"owners_count":20571804,"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":["github","gitlab","google","microsoft","nexys","oauth2","swissid","typescript","zoho"],"created_at":"2024-09-30T15:08:19.401Z","updated_at":"2026-05-08T08:12:27.138Z","avatar_url":"https://github.com/nexys-system.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OAuth helpers\n\n[![NPM package](https://badge.fury.io/js/%40nexys%2Foauth.svg)](https://www.npmjs.com/package/@nexys/oauth)\n[![NPM package](https://img.shields.io/npm/v/@nexys/oauth.svg)](https://www.npmjs.com/package/@nexys/oauth)\n[![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io/)\n[![Build and Test Package](https://github.com/nexys-system/oauth/actions/workflows/test.yml/badge.svg)](https://github.com/nexys-system/oauth/actions/workflows/test.yml)\n[![Build and Test Package and (publish)](https://github.com/nexys-system/oauth/actions/workflows/publish.yml/badge.svg)](https://github.com/nexys-system/oauth/actions/workflows/publish.yml)\n\n\n```\nrouter.get(\"/sso/red\", async (ctx) =\u003e {\n  ctx.redirect(gh.oAuthUrl());\n});\n\nrouter.get(\"/sso/github/redirect\", async (ctx) =\u003e {\n  const { code } = ctx.query;\n  const token = await gh.callback(code as string);\n  const profile = await gh.getProfile(token);\n  \n  // here connect to the user management\n  ctx.body = profile\n});\n\n```\n\n[Link to old generic route generator](https://github.com/nexys-system/oauth/commit/1679c3799af8f4d53d4a4a23c21fed9dfcb0ab9a) (deleted from the repo, to reduce the amount of dependencies)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnexys-system%2Foauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnexys-system%2Foauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnexys-system%2Foauth/lists"}