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
> Migrate actions is required if you are upgrading from version 2.24.2 or earlier. Please see the [Migrate actions](#migrate-actions) section for detailed instructions.
15
+
14
16
## Contents
15
17
16
18
-[Installation](#installation)
@@ -28,6 +30,7 @@ offer secure content and even log in to the application.
28
30
-[Events](#events)
29
31
-[Customization](#customization)
30
32
-[Rate limiting](#rate-limiting)
33
+
-[Migrate actions](#migrate-actions)
31
34
-[Testing](#testing)
32
35
-[Contributing](#contributing)
33
36
-[Security](#security)
@@ -450,6 +453,26 @@ to limit the requests. For example, to limit the requests to 100 per minute, set
450
453
MAGICLINK_RATE_LIMIT=100
451
454
```
452
455
456
+
## Migrate actions
457
+
458
+
> [!WARNING]
459
+
> The action storage mechanism changed from PHP serialization to HMAC-signed JSON format for improved security.
460
+
> If you're upgrading from version 2.24.2, you need to migrate existing MagicLinks.
461
+
462
+
To migrate legacy serialized actions to the new format, run:
463
+
464
+
```bash
465
+
php artisan magiclink:migrate --dry-run
466
+
```
467
+
468
+
This command will simulate the migration and display the number of legacy MagicLinks found.
469
+
470
+
If everything looks good, run the migration for real with:
0 commit comments