Ghost/ghost
Fabien 'egg' O'Carroll 6957c2725b Refactored magic-link to be more generic (#202)
no-issue

This removes the concept of `subject` & `payload` from the function
signatures, making the implementation a little more generic, and less
JWT centric.

We also replace getUserFromToken and getPayloadFromToken with a single
method getDataFromToken, which will contain all the necessary data.

* Updated members-api to use new magic-link module

This updates the usage of magic-link to work with the new interface

* Fixed labels not saving for new members

Due to how bookshelf-relations works, we must fetch the labels before
saving a member, otherwise the labels are all deleted.

* Used a proper class rather than constructor function

This just moves the code to a more modern standard

* Updated methods to be async

This prepares us for a future where token generation and validation may
require access to storage and thus be an asyncronous operation
2020-09-17 15:42:01 +01:00
..
magic-link Refactored magic-link to be more generic (#202) 2020-09-17 15:42:01 +01:00
members-api Refactored magic-link to be more generic (#202) 2020-09-17 15:42:01 +01:00
members-csv Update dependency papaparse to v5.3.0 2020-08-26 18:04:36 +00:00
members-ssr Published new versions 2020-08-11 09:10:32 +01:00