One time self destructing links in adonisJS 5 #1367
-
Hi, is there a way to create one time (self-destructing) links in adonis 5? This can be useful on password resets or invitation links |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
We have signed urls, which are non db backed URLs, but are not one time only. In order to have one time only urls, you need to store the state on your server and cannot be done without it. One way is to generate signed urls with small expiry, lets say 30mins and after they are used, you can store the signature in Redis and dis-allow it next time. But, yes as far as AdonisJS is concerned, I have no plans of introducing this functionality in the core. |
Beta Was this translation helpful? Give feedback.
We have signed urls, which are non db backed URLs, but are not one time only.
In order to have one time only urls, you need to store the state on your server and cannot be done without it.
One way is to generate signed urls with small expiry, lets say 30mins and after they are used, you can store the signature in Redis and dis-allow it next time.
But, yes as far as AdonisJS is concerned, I have no plans of introducing this functionality in the core.