{"id":20725659,"url":"https://github.com/lskjs/lsk-auth","last_synced_at":"2026-04-15T15:35:44.134Z","repository":{"id":75625058,"uuid":"90369115","full_name":"lskjs/lsk-auth","owner":"lskjs","description":"LSK Auth module","archived":false,"fork":false,"pushed_at":"2019-02-11T13:39:48.000Z","size":230,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-11T08:50:37.582Z","etag":null,"topics":["authentication","isomorphic","javascript","lsk","module","nodejs","react","universal"],"latest_commit_sha":null,"homepage":"https://lsk.mgbeta.ru/auth","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/lskjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2017-05-05T11:29:16.000Z","updated_at":"2019-02-11T13:39:49.000Z","dependencies_parsed_at":"2023-06-07T03:45:41.469Z","dependency_job_id":null,"html_url":"https://github.com/lskjs/lsk-auth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lskjs/lsk-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lskjs%2Flsk-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lskjs%2Flsk-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lskjs%2Flsk-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lskjs%2Flsk-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lskjs","download_url":"https://codeload.github.com/lskjs/lsk-auth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lskjs%2Flsk-auth/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266990993,"owners_count":24017732,"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-07-25T02:00:09.625Z","response_time":70,"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":["authentication","isomorphic","javascript","lsk","module","nodejs","react","universal"],"created_at":"2024-11-17T04:19:43.611Z","updated_at":"2026-04-15T15:35:39.101Z","avatar_url":"https://github.com/lskjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LSK Auth\n\n\n# достал из chat.server.js\n\n```js\n Message.getRole(userId) -\u003e owner\n Message.is('owner')  // ?\n Message.roles = {\n  owner: {\n    read: ['title', 'createdAt'], // all\n    write: ['user, 'owner'] // info\n }\n  guest: {\n    read: ['title', 'createdAt'], // all\n    write: ['user, 'owner'] // null\n }\n validate params\n 1) OWNER\n 2) Public\n\n\n Message.isOwner = (userId) =\u003e { this.ownerId } ['content']\n Message.canWrite = ['content']\n MEssage.canWrite = ['content']\n\n schema = {\n   title: {\n     canWrite: () =\u003e {}\n   }\n }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flskjs%2Flsk-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flskjs%2Flsk-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flskjs%2Flsk-auth/lists"}