{"id":21326346,"url":"https://github.com/maximemoreillon/oidc-auth","last_synced_at":"2025-10-06T02:23:43.957Z","repository":{"id":256694425,"uuid":"856129883","full_name":"maximemoreillon/oidc-auth","owner":"maximemoreillon","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-16T00:41:20.000Z","size":111,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-22T09:07:08.671Z","etag":null,"topics":["oauth","oauth2","oidc"],"latest_commit_sha":null,"homepage":"","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/maximemoreillon.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,"zenodo":null}},"created_at":"2024-09-12T03:27:41.000Z","updated_at":"2025-07-16T00:41:24.000Z","dependencies_parsed_at":"2025-04-21T03:26:50.840Z","dependency_job_id":"3c3c6726-4830-41ff-8f22-88f9db3b7c5a","html_url":"https://github.com/maximemoreillon/oidc-auth","commit_stats":null,"previous_names":["maximemoreillon/oidc-auth"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/maximemoreillon/oidc-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximemoreillon%2Foidc-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximemoreillon%2Foidc-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximemoreillon%2Foidc-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximemoreillon%2Foidc-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maximemoreillon","download_url":"https://codeload.github.com/maximemoreillon/oidc-auth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximemoreillon%2Foidc-auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278548018,"owners_count":26004818,"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-06T02:00:05.630Z","response_time":65,"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":["oauth","oauth2","oidc"],"created_at":"2024-11-21T21:09:20.187Z","updated_at":"2025-10-06T02:23:43.952Z","avatar_url":"https://github.com/maximemoreillon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OIDC Auth\n\nA simple class that enforces authentication using OpenID Connect / Oauth2.0\n\n## Usage example\n\n```ts\nimport OidcClient from \"@moreillon/oidc-auth\"\n\nconst { VITE_APP_OIDC_AUTHORITY, VITE_APP_OIDC_CLIENT_ID } = import.meta.env\n\nconst oidcClient = new OidcClient({\n  redirect_uri: `${window.location.origin}/callback`,\n  authority: VITE_OIDC_AUTHORITY,\n  client_id: VITE_OIDC_CLIENT_ID,\n  extraQueryParams: {\n    audience: VITE_OIDC_AUDIENCE,\n  },\n})\n\nasync function main() {\n  const result = await oidcClient.init()\n  if (!result) return\n  const { tokens, user } = result\n\n  oidcClient.onTokenRefreshed((tokens) =\u003e {\n    console.log(\"Token refreshed\")\n    console.log(tokens)\n  })\n}\n\nmain()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximemoreillon%2Foidc-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaximemoreillon%2Foidc-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximemoreillon%2Foidc-auth/lists"}