{"id":22894274,"url":"https://github.com/clearcodehq/eh-library-auth","last_synced_at":"2025-03-31T22:38:36.314Z","repository":{"id":69040377,"uuid":"47981530","full_name":"ClearcodeHQ/eh-library-auth","owner":"ClearcodeHQ","description":null,"archived":false,"fork":false,"pushed_at":"2016-01-14T08:38:20.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-30T13:37:08.173Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/ClearcodeHQ.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":"2015-12-14T14:56:44.000Z","updated_at":"2016-01-14T08:23:30.000Z","dependencies_parsed_at":"2023-03-17T23:00:31.003Z","dependency_job_id":null,"html_url":"https://github.com/ClearcodeHQ/eh-library-auth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClearcodeHQ%2Feh-library-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClearcodeHQ%2Feh-library-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClearcodeHQ%2Feh-library-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClearcodeHQ%2Feh-library-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ClearcodeHQ","download_url":"https://codeload.github.com/ClearcodeHQ/eh-library-auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246552972,"owners_count":20795835,"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-13T23:17:22.315Z","updated_at":"2025-03-31T22:38:36.285Z","avatar_url":"https://github.com/ClearcodeHQ.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Features\n- register user\n- authenticate JWT\n- generate JWT\n- get user\n\n\nsee [LibraryAuth](https://github.com/ClearcodeHQ/eh-library-auth/blob/master/src/LibraryAuth.php) class\n\n## Usage\n\nuse Application class that implements LibraryAuth features\n\n```php\n\nuse Clearcode\\EHLibraryAuth\\Application;\n\n$app = new Application();\n\n\n$app-\u003eregisterUser('johndoe@example.com', ['reader']);\n\n$token = $app-\u003egenerateToken('johndoe@example.com');\n\n$app-\u003eauthenticate($token);\n\n$user = $app-\u003egetUser('johndoe@example.com');\n\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclearcodehq%2Feh-library-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclearcodehq%2Feh-library-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclearcodehq%2Feh-library-auth/lists"}