spiral-project / daybed

Form validation and data storage API
http://daybed.rtfd.org/
BSD 3-Clause "New" or "Revised" License
52 stars 8 forks source link

Revoke / update tokens #262

Open leplatrem opened 10 years ago

leplatrem commented 10 years ago

How to migrate a token to a new one (Related to how do we revoke a token).

Can you elaborate?

For me when you revoke a token you just remove it from every permissions and authors list and the token table If you need to add one, you should add it before revoking the other

Maybe we can add a PATCH /tokens/:token helper to say hey, replace this token by this one?