3 ms·
While the example explains the approach, this is susceptible to a brute force attack where you just try different tokens until they work. To further improve th
by juandazapata 10y ago
While the example explains the approach, this is susceptible to a brute force attack where you just try different tokens until they work.
To further improve the security, the author shold include the `userId` in the magic URL and make sure it matches with the `token`. Some sort of rate limiting could work as well.