{"id":16767383,"url":"https://github.com/vardius/angular-oauth2","last_synced_at":"2025-10-08T21:48:48.065Z","repository":{"id":57179361,"uuid":"53501215","full_name":"vardius/angular-oauth2","owner":"vardius","description":"Angular oauth2 provider","archived":false,"fork":false,"pushed_at":"2016-10-18T06:27:56.000Z","size":84,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-16T15:11:47.065Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/vardius.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}},"created_at":"2016-03-09T13:49:45.000Z","updated_at":"2017-04-15T01:12:20.000Z","dependencies_parsed_at":"2022-09-14T02:31:38.610Z","dependency_job_id":null,"html_url":"https://github.com/vardius/angular-oauth2","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vardius/angular-oauth2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vardius%2Fangular-oauth2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vardius%2Fangular-oauth2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vardius%2Fangular-oauth2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vardius%2Fangular-oauth2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vardius","download_url":"https://codeload.github.com/vardius/angular-oauth2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vardius%2Fangular-oauth2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261243993,"owners_count":23129637,"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":"2024-10-13T06:09:01.536Z","updated_at":"2025-10-08T21:48:43.020Z","avatar_url":"https://github.com/vardius.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"angular-voauth2\n==================\n\nAngular oauth2 provider\n\n## Installation\n\nInstall with bower:\n\n```bash\n$ bower install angular-voauth2 --save\n```\n\nInstall with npm:\n\n```bash\n$ npm install angular-voauth2\n```\n\nLoad the `angular-voauth2` module in your app.\n\n```javascript\nangular.module('app', ['vOAuth2']);\n```\n\n## Catch oauth errors\n\nRemember to remove token\n\n```javascript\nangular.module('myApp', ['vOAuth2'])\n  .run(run);\n  \n  run.$inject = ['$rootScope', '$state'];\n  \n  function run($rootScope, $state) {\n      $rootScope.$on('voauth:error', function () {\n          $state.go('login', {}, {reload: true});\n      });\n  }\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvardius%2Fangular-oauth2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvardius%2Fangular-oauth2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvardius%2Fangular-oauth2/lists"}