{"id":23276225,"url":"https://github.com/dinoscapeprogramming/authentication-package","last_synced_at":"2025-10-27T20:41:05.225Z","repository":{"id":59090918,"uuid":"535368535","full_name":"DinoscapeProgramming/Authentication-Package","owner":"DinoscapeProgramming","description":"A package you can use to create a user system with authentications","archived":false,"fork":false,"pushed_at":"2022-09-16T15:58:23.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-08T21:33:15.337Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DinoscapeProgramming.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":"2022-09-11T17:09:53.000Z","updated_at":"2022-09-16T15:57:27.000Z","dependencies_parsed_at":"2023-01-18T10:30:43.832Z","dependency_job_id":null,"html_url":"https://github.com/DinoscapeProgramming/Authentication-Package","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DinoscapeProgramming/Authentication-Package","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DinoscapeProgramming%2FAuthentication-Package","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DinoscapeProgramming%2FAuthentication-Package/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DinoscapeProgramming%2FAuthentication-Package/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DinoscapeProgramming%2FAuthentication-Package/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DinoscapeProgramming","download_url":"https://codeload.github.com/DinoscapeProgramming/Authentication-Package/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DinoscapeProgramming%2FAuthentication-Package/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260233972,"owners_count":22978904,"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-12-19T21:29:48.833Z","updated_at":"2025-10-27T20:41:05.118Z","avatar_url":"https://github.com/DinoscapeProgramming.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Authentication Package\r\nA package you can use to create a user system with authentications\r\n\r\n## Documentation\r\n### Setup\r\n```js\r\nconst expressAuthentication = require('express-user-authentication');\r\n```\r\n\r\n### Create User\r\n```js\r\nexpressAuthentication.createUser({\r\n  username: \"Dinoscape\",\r\n  password: \"MyPassword\",\r\n  data: {\r\n    type: \"User\"\r\n  }\r\n});\r\n```\r\n\r\n### Edit User\r\n```js\r\nexpressAuthentication.editUser({\r\n  username: \"Dinoscape\",\r\n  password: \"MyPassword\",\r\n  options: {\r\n    username: \"DinoRunner\",\r\n    password: \"SecurePassword\",\r\n    data: {\r\n      type: \"Admin\"\r\n    }\r\n  }\r\n});\r\n```\r\n\r\n### Delete User\r\n```js\r\nexpressAuthentication.deleteUser({\r\n  username: \"DinoRunner\",\r\n  password: \"SecurePassword\"\r\n});\r\n```\r\n\r\n### Authentication\r\n```js\r\napp.on(\"/admin\", expressAuthentication({\r\n  data: {\r\n    type: \"Admin\"\r\n  }\r\n}), (req, res) =\u003e {\r\n  res.send(\"You are an admin!\");\r\n})\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinoscapeprogramming%2Fauthentication-package","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdinoscapeprogramming%2Fauthentication-package","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinoscapeprogramming%2Fauthentication-package/lists"}