{"id":16480614,"url":"https://github.com/fredericheem/restauth","last_synced_at":"2025-02-28T16:23:36.533Z","repository":{"id":57354985,"uuid":"43764480","full_name":"FredericHeem/restauth","owner":"FredericHeem","description":"A Rest client supporting authentication. Useful for testing authenticated REST API.","archived":false,"fork":false,"pushed_at":"2019-09-01T20:50:41.000Z","size":13,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T03:48:28.708Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FredericHeem.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":"2015-10-06T16:53:17.000Z","updated_at":"2016-01-13T17:34:14.000Z","dependencies_parsed_at":"2022-09-26T16:31:37.177Z","dependency_job_id":null,"html_url":"https://github.com/FredericHeem/restauth","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FredericHeem%2Frestauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FredericHeem%2Frestauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FredericHeem%2Frestauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FredericHeem%2Frestauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FredericHeem","download_url":"https://codeload.github.com/FredericHeem/restauth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241180975,"owners_count":19923328,"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-11T13:04:47.346Z","updated_at":"2025-02-28T16:23:36.490Z","avatar_url":"https://github.com/FredericHeem.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n\u003e RestAuth\n\nA Rest client supporting authentication with JSON Web Token and cookies. Useful for testing authenticated REST API.\n\n[![NPM version][npm-image]][npm-url]\n[![Dependency Status][daviddm-image]][daviddm-url]\n\n## Install\n\n```sh\n$ npm install --save restauth\n```\n\n## Usage\n\n```js\n\nimport {Client} from 'restauth';\n\nlet config = {\n  username:\"alice\",\n  password:\"password\",\n  url:\"http://localhost:3000/api/\"\n};\n\nlet client = new Client(config);\nlet resLogin = await client.login();\nassert(resLogin);\nlet me = await client.get('v1/me');\nassert(me);\n\n```\n\n## Test\n\n    $ npm test\n\n## License\n\nMIT © [Frederic Heem](https://github.com/FredericHeem)\n\n\n[npm-image]: https://badge.fury.io/js/restauth.svg\n[npm-url]: https://npmjs.org/package/restauth\n[travis-image]: https://travis-ci.org/FredericHeem/restauth.svg?branch=master\n[travis-url]: https://travis-ci.org/FredericHeem/restauth\n[daviddm-image]: https://david-dm.org/FredericHeem/restauth.svg?theme=shields.io\n[daviddm-url]: https://david-dm.org/FredericHeem/restauth\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredericheem%2Frestauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffredericheem%2Frestauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredericheem%2Frestauth/lists"}