You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-10Lines changed: 17 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,9 @@
2
2
3
3

4
4
# LARAVEL PASSWORDLESS AUTHENTICATION
5
-
Laravel Passwordless Authentication with Magic Link.
5
+
Laravel Passwordless Authentication using Magic Link.
6
6
7
-
This package allows authentication via email link.
8
-
It removes the need for users to provide password to authenticate but rely on user email address to send
9
-
them a login link to their inbox to follow to authenticate user securely.
7
+
This package enables authentication through email links, eliminating the requirement for users to input passwords for authentication. Instead, it leverages the user's email address to send a login link to their inbox. Users can securely authenticate by clicking on this link. It's important to note that the package does not include a user interface for the authentication page; it assumes that the application's login page will be custom-built. Make sure to scaffold your login UI page accordingly to integrate seamlessly with this package.
10
8
11
9
**PS. Email provider must be setup correctly and working to email magic link to authenticate user**
Open the `User::class` Model and make sure to implements `NorbyBaru\Passwordless\CanUsePasswordlessAuthenticatable::class` and add trait `NorbyBaru\Passwordless\Traits\PasswordlessAuthenticatable::class` to the class
34
+
Open the `User::class` Model and ensure to implements `NorbyBaru\Passwordless\CanUsePasswordlessAuthenticatable::class` and to add trait `NorbyBaru\Passwordless\Traits\PasswordlessAuthenticatable::class` to the class
37
35
38
36
```php
39
37
<?php
@@ -71,7 +69,7 @@ eg.
71
69
```
72
70
73
71
## Setup Login Routes
74
-
Make sure to setup new login routes and update your application to use the new login route
72
+
Update application Login routes to sen Magic Link to user
75
73
76
74
```php
77
75
<?php
@@ -119,11 +117,20 @@ return [
119
117
];
120
118
```
121
119
122
-
## Setup Auth Provider
123
-
124
120
# Advance Usage
125
121
## Override MagicLinkNotification
126
122
123
+
To override default notification template, override method `sendAuthenticationMagicLink` in your User model which implements interface `CanUsePasswordlessAuthenticatable`
124
+
125
+
```php
126
+
public function sendAuthenticationMagicLink(string $token): void
0 commit comments