{"id":33996797,"url":"https://github.com/sander3/laravel-magic-auth","last_synced_at":"2025-12-13T08:41:00.101Z","repository":{"id":57056217,"uuid":"137579207","full_name":"sander3/laravel-magic-auth","owner":"sander3","description":"Fast and secure passwordless authentication for the masses.","archived":false,"fork":false,"pushed_at":"2021-01-23T09:41:26.000Z","size":25,"stargazers_count":15,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-27T16:32:31.650Z","etag":null,"topics":["authentication","encryption","laravel","magic-authentication","soved"],"latest_commit_sha":null,"homepage":"","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/sander3.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":"2018-06-16T12:31:26.000Z","updated_at":"2023-11-03T22:12:59.000Z","dependencies_parsed_at":"2022-08-24T02:20:06.433Z","dependency_job_id":null,"html_url":"https://github.com/sander3/laravel-magic-auth","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/sander3/laravel-magic-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sander3%2Flaravel-magic-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sander3%2Flaravel-magic-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sander3%2Flaravel-magic-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sander3%2Flaravel-magic-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sander3","download_url":"https://codeload.github.com/sander3/laravel-magic-auth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sander3%2Flaravel-magic-auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27702688,"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-12-13T02:00:09.769Z","response_time":147,"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","encryption","laravel","magic-authentication","soved"],"created_at":"2025-12-13T08:40:58.334Z","updated_at":"2025-12-13T08:41:00.095Z","avatar_url":"https://github.com/sander3.png","language":"PHP","funding_links":["https://www.buymeacoffee.com/sander3"],"categories":[],"sub_categories":[],"readme":"# Authenticate users using a magic link\n\nFast and secure passwordless authentication for the masses.\n\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/sander3/laravel-magic-auth/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/sander3/laravel-magic-auth/?branch=master)\n[![Latest Stable Version](https://poser.pugx.org/soved/laravel-magic-auth/v/stable)](https://packagist.org/packages/soved/laravel-magic-auth)\n[![Monthly Downloads](https://poser.pugx.org/soved/laravel-magic-auth/d/monthly)](https://packagist.org/packages/soved/laravel-magic-auth)\n[![License](https://poser.pugx.org/soved/laravel-magic-auth/license)](https://packagist.org/packages/soved/laravel-magic-auth)\n\n[Buy me a coffee ☕️](https://www.buymeacoffee.com/sander3)\n\n## Requirements\n\n- PHP \u003e= 7.1.3\n- Laravel \u003e= 5.6, 6.0 or 7.0\n\n## Installation\n\nFirst, install the package via the Composer package manager:\n\n```bash\n$ composer require soved/laravel-magic-auth\n```\n\nAfter installing the package, you should publish the configuration file:\n\n```bash\n$ php artisan vendor:publish --tag=magic-auth-config\n```\n\nAdd the `Soved\\Laravel\\Magic\\Auth\\Contracts\\CanMagicallyLogin` interface to the `App\\User` model:\n\n```php\n\u003c?php\n\nnamespace App;\n\nuse Illuminate\\Notifications\\Notifiable;\nuse Soved\\Laravel\\Magic\\Auth\\Traits\\CanMagicallyLogin;\nuse Illuminate\\Foundation\\Auth\\User as Authenticatable;\nuse Soved\\Laravel\\Magic\\Auth\\Contracts\\CanMagicallyLogin as CanMagicallyLoginContract;\n\nclass User extends Authenticatable implements CanMagicallyLoginContract\n{\n    use Notifiable, CanMagicallyLogin;\n}\n\n```\n\nFinally, add the `Soved\\Laravel\\Magic\\Auth\\Traits\\CanMagicallyLogin` trait to the `App\\User` model to implement the interface.\n\n## Usage\n\nThis package exposes two endpoints, one to request a magic link (`magic/email`) and one to authenticate using the magic link (`magic/login`). Your application should make a POST call, containing the user's email address, to request a magic link. The magic link will be send via email using a notification. Feel free to customize the notification by overriding the `CanMagicallyLogin@sendMagicLinkNotification` method.\n\n### Middleware\n\nYou may want to register the `Soved\\Laravel\\Magic\\Auth\\Http\\Middleware\\AuthenticateWithMagicLink` middleware to ensure users are authenticated via a magic link.\n\n## Security Vulnerabilities\n\nIf you discover a security vulnerability within this project, please send an e-mail to Sander de Vos via [sander@tutanota.de](mailto:sander@tutanota.de). All security vulnerabilities will be promptly addressed.\n\n## License\n\nThis package is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsander3%2Flaravel-magic-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsander3%2Flaravel-magic-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsander3%2Flaravel-magic-auth/lists"}