Fabien O'Carroll
ac3177e0bb
Fixed require paths and top level js files
...
no-issue
We only include index.js and lib in npm packages.
2021-07-15 18:15:49 +01:00
Fabien O'Carroll
d59051c104
Published new versions
...
- @tryghost/magic-link@1.0.6
- @tryghost/members-api@1.20.0
- @tryghost/members-csv@1.1.2
- @tryghost/members-ssr@1.0.6
2021-07-15 16:34:02 +01:00
Fabien O'Carroll
9102b7527f
Moved MagicLink out of index.js
...
refs https://github.com/TryGhost/Team/issues/879
2021-07-14 14:17:38 +01:00
Fabien O'Carroll
3e1084905e
Removed usage of raw Error class
...
refs https://github.com/TryGhost/Team/issues/879
2021-07-14 14:17:38 +01:00
Renovate Bot
223ee56647
Update Test & linting packages
2021-07-14 14:12:12 +01:00
Fabien O'Carroll
6083e4825f
Removed trailing commas from .eslintrc.js
...
refs https://github.com/TryGhost/Team/issues/879
2021-07-14 12:04:46 +01:00
Fabien O'Carroll
7545e67f2c
Published new versions
...
- @tryghost/magic-link@1.0.5
- @tryghost/members-api@1.18.0
- @tryghost/members-csv@1.1.1
- @tryghost/members-ssr@1.0.5
2021-07-06 11:18:01 +01:00
Daniel Lockyer
21ec26ea08
Removed used of ghost-ignition
dependency
...
no issue
- we're killing off `ghost-ignition` in favor of explicit packages
containing its individual components
- this commit switches the Members repo to using the
`@tryghost/ignition-errors` and `@tryghost/debug` dependencies,
updates the code with relevant changes and removes the `ghost-ignition`
dependency
2021-06-29 21:43:05 +01:00
Fabien O'Carroll
45c3de71d6
Published new versions
...
- @tryghost/magic-link@1.0.4
- @tryghost/members-api@1.15.0
- @tryghost/members-ssr@1.0.4
2021-06-16 18:25:48 +01:00
Renovate Bot
f6e12a3da7
Update dependency ghost-ignition to v4.6.3
2021-06-15 18:28:07 +00:00
Fabien O'Carroll
bac55fcfb7
Published new versions
...
- @tryghost/magic-link@1.0.3
- @tryghost/members-api@1.11.0
- @tryghost/members-ssr@1.0.3
2021-05-24 10:34:04 +01:00
Renovate Bot
dd630a74fc
Update dependency @types/nodemailer to v6.4.1
2021-05-24 10:25:34 +01:00
Renovate Bot
4d98dddc89
Update dependency @types/jsonwebtoken to v8.5.1
2021-05-24 10:24:13 +01:00
Renovate Bot
324c008d3a
Update dependency @types/node to v14
2021-05-24 10:21:52 +01:00
Rish
25a1f7d0b4
Published new versions
...
- @tryghost/magic-link@1.0.2
- @tryghost/members-api@1.3.0
- @tryghost/members-ssr@1.0.2
2021-04-20 17:23:04 +05:30
Renovate Bot
bd3b3738e5
Update dependency ghost-ignition to v4.6.2
2021-04-19 05:22:28 +00:00
Rish
6a05d55e5d
Published new versions
...
- @tryghost/magic-link@1.0.1
- @tryghost/members-api@1.1.1
- @tryghost/members-ssr@1.0.1
2021-04-06 18:44:44 +05:30
Renovate Bot
d5c893ca5b
Update dependency ghost-ignition to v4.6.1
2021-03-31 14:45:04 +00:00
Fabien O'Carroll
0629791824
Published new versions
...
- @tryghost/magic-link@1.0.0
- @tryghost/members-api@1.0.0
- @tryghost/members-csv@1.0.0
- @tryghost/members-ssr@1.0.0
2021-03-10 17:23:30 +00:00
Renovate Bot
5506406dbf
Update dependency ghost-ignition to v4.5.4
2021-03-08 02:15:38 +00:00
Fabien O'Carroll
0d97bd7dd6
Published new versions
...
- @tryghost/magic-link@0.6.7
- @tryghost/members-api@0.37.10
- @tryghost/members-ssr@0.8.11
2021-02-22 14:02:54 +00:00
Renovate Bot
6a7aaf0397
Update dependency ghost-ignition to v4.4.4
2021-02-19 21:24:49 +00:00
Rish
8b3cd5499c
Published new versions
...
- @tryghost/magic-link@0.6.6
- @tryghost/members-api@0.37.7
- @tryghost/members-ssr@0.8.10
2021-02-01 10:25:11 +05:30
Renovate Bot
f823334b15
Update dependency ghost-ignition to v4.4.3
2021-01-28 17:28:39 +00:00
Fabien O'Carroll
8d9340534d
Published new versions
...
- @tryghost/magic-link@0.6.5
- @tryghost/members-api@0.37.4
- @tryghost/members-csv@0.4.3
- @tryghost/members-ssr@0.8.9
2021-01-26 12:02:58 +00:00
John O'Nolan
0e0b2f3cb2
2021
2021-01-25 16:34:32 +00:00
Fabien O'Carroll
c885e024ae
Published new versions
...
- @tryghost/magic-link@0.6.4
- @tryghost/members-api@0.37.3
- @tryghost/members-ssr@0.8.8
2021-01-25 13:21:34 +00:00
Renovate Bot
40ef97e6d3
Update dependency ghost-ignition to v4.4.2
2021-01-25 01:37:03 +00:00
Fabien O'Carroll
07fea2c68c
Published new versions
...
- @tryghost/magic-link@0.6.3
- @tryghost/members-api@0.37.0
- @tryghost/members-csv@0.4.2
- @tryghost/members-ssr@0.8.7
2021-01-18 16:51:19 +00:00
Renovate Bot
af13570076
Update dependency ghost-ignition to v4.3.0
2021-01-14 17:05:36 +00:00
Fabien O'Carroll
bd1173ef9f
Published new versions
...
- @tryghost/magic-link@0.6.2
- @tryghost/members-api@0.35.0
- @tryghost/members-csv@0.3.3
- @tryghost/members-ssr@0.8.6
2020-11-23 16:53:10 +00:00
Renovate Bot
5879193940
Update dependency ghost-ignition to v4.2.4
2020-11-05 12:04:34 +00:00
Renovate Bot
a4d2dcaa8c
Update dependency ghost-ignition to v4.2.3
2020-11-02 01:05:58 +00:00
Rish
06f9eb6dfe
Published new versions
...
- @tryghost/magic-link@0.6.1
- @tryghost/members-api@0.34.1
- @tryghost/members-csv@0.3.2
2020-10-29 12:38:06 +05:30
Rish
1ba68ce72f
Added default value for request src
...
no issue
`getSigninUrl` takes an optional param `requestSrc` to allow customizing signin url based on source like Portal. Fixes tests and adds default value in case no `requestSrc` is present.
2020-10-29 12:10:28 +05:30
Rish
216aeb572e
Added request source option for magic link url
...
no issue
refs https://github.com/TryGhost/Ghost/issues/12253
Currently, Ghost uses standard query params like action, success and stripe for all actions and redirects to a site for member events. This needed to be extended to allow for portal specific query params so it doesn't overlap with specific theme handling or custom notifications.
The change here adds an extra option - `requestSrc` - which can be passed when using magic link API to send a link which is passed down to `getSigninURL`, and allows the `action` param to configured to `portal-action` when magic links are sent from Portal
2020-10-29 11:59:01 +05:30
Fabien O'Carroll
42c2468314
Published new versions
...
- @tryghost/magic-link@0.6.0
- @tryghost/members-api@0.29.0
2020-09-18 13:23:54 +01:00
Fabien O'Carroll
9363d4a3b5
Fixed MagicLink tests
...
no-issue
2020-09-18 13:23:17 +01:00
Fabien O'Carroll
9c093c6beb
Fixed MagicLink tests
...
no-issue
The JWTTokenProvider is now exported from the index
2020-09-18 13:21:46 +01:00
Fabien O'Carroll
97ceb13d42
Moved JWTTokenProvider to lib and exported from index
...
no-issue
This brings the module in line with our current package standards.
2020-09-18 13:20:12 +01:00
Fabien O'Carroll
e38dbc1e6e
Published new versions
...
- @tryghost/magic-link@0.5.0
- @tryghost/members-api@0.28.3
- @tryghost/members-csv@0.3.1
2020-09-18 12:43:56 +01:00
Fabien O'Carroll
de7f5c1383
Updated README to reflect API changes
...
no-issue
2020-09-18 12:42:31 +01:00
Fabien O'Carroll
a208a6c957
Added JWTTokenProvider to preserve functionality
...
no-issue
This allows the magic-link module to be used with the current
functionality with minimal changes
2020-09-18 12:42:31 +01:00
Fabien O'Carroll
37c8c15dd6
Updated magic-link to accept a TokenProvider
...
no-issue
This adds a layer of abstraction between the magic-link module and the
token generation, allowing us to switch out the token generation in the
future, when implementing single use tokens stored in a database
2020-09-18 12:42:31 +01:00
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
Daniel Lockyer
85800c57f7
Published new versions
...
- @tryghost/magic-link@0.4.13
- @tryghost/members-api@0.25.2
- @tryghost/members-ssr@0.8.5
2020-08-11 09:10:32 +01:00
Daniel Lockyer
56ef95c397
Updated ghost-ignition dependency
...
- this will resolve the lodash warnings when running `yarn audit`
2020-08-11 09:08:54 +01:00
Fabien O'Carroll
20e3b6cc8a
Published new versions
...
- @tryghost/magic-link@0.4.12
- @tryghost/members-api@0.25.0
- @tryghost/members-ssr@0.8.4
2020-07-24 13:48:27 +02:00
Renovate Bot
8137d5aa72
Update dependency mocha to v6.2.3
2020-07-23 13:04:38 +00:00
Fabien O'Carroll
9dc22b2bb2
Published new versions
...
- @tryghost/magic-link@0.4.11
- @tryghost/members-api@0.24.1
- @tryghost/members-ssr@0.8.3
2020-07-21 12:02:36 +02:00
Renovate Bot
f94f1bc107
Update dependency @types/node to v12.12.51
2020-07-20 22:51:48 +00:00
Renovate Bot
cd2a8511c8
Update dependency @types/node to v12.12.50
2020-07-10 17:06:24 +00:00
renovate[bot]
0687210bfc
Update dependency ghost-ignition to v4 ( #108 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-10 16:36:33 +02:00
Renovate Bot
be854f4c59
Update dependency @types/node to v12.12.49
2020-07-10 14:04:19 +00:00
Nazar Gargol
5b909735fd
Published new versions
...
- @tryghost/magic-link@0.4.10
- @tryghost/members-api@0.23.1
- @tryghost/members-csv@0.2.1
- @tryghost/members-ssr@0.8.2
2020-07-08 20:23:05 +12:00
Renovate Bot
587c95b0d0
Update dependency @types/node to v12.12.48
2020-07-06 22:13:49 +00:00
Rish
a136e5f839
Published new versions
...
- @tryghost/magic-link@0.4.9
- @tryghost/members-api@0.20.1
- @tryghost/members-ssr@0.8.1
2020-06-10 16:32:14 +05:30
Renovate Bot
ec81ccfbeb
Update dependency @types/node to v12.12.47
2020-06-09 22:59:06 +00:00
Renovate Bot
7fbe60c104
Update dependency @types/node to v12.12.46
2020-06-09 18:18:20 +00:00
Renovate Bot
4761601219
Update dependency @types/node to v12.12.45
2020-06-08 20:22:23 +00:00
Renovate Bot
937584f290
Update dependency @types/node to v12.12.44
2020-06-04 23:18:43 +00:00
Kevin Ansfield
88146dc3a3
Published new versions
...
- @tryghost/magic-link@0.4.8
- @tryghost/members-api@0.20.0
- @tryghost/members-ssr@0.8.0
2020-06-04 13:27:14 +01:00
Renovate Bot
141be65d5e
Update dependency @types/node to v12.12.43
2020-06-02 00:38:29 +00:00
Daniel Lockyer
730ddc2ae6
Published new versions
...
- @tryghost/magic-link@0.4.7
- @tryghost/members-api@0.18.7
- @tryghost/members-ssr@0.7.10
2020-05-25 13:11:54 +01:00
Renovate Bot
be5568682a
Update dependency @types/node to v12.12.42
2020-05-21 22:17:43 +00:00
Rish
ce72aa40a0
Published new versions
...
- @tryghost/magic-link@0.4.6
- @tryghost/members-api@0.18.5
- @tryghost/members-ssr@0.7.9
2020-05-20 14:34:40 +05:30
Renovate Bot
01de256cc4
Update dependency @types/node to v12.12.41
2020-05-20 01:15:38 +00:00
Renovate Bot
92fd95c08a
Update dependency @types/node to v12.12.40
2020-05-19 20:15:56 +00:00
Rish
23e343d3b4
Published new versions
...
- @tryghost/magic-link@0.4.5
- @tryghost/members-api@0.18.4
- @tryghost/members-ssr@0.7.8
2020-05-19 22:03:56 +05:30
Renovate Bot
508daa5956
Update dependency @types/jsonwebtoken to v8.5.0
2020-05-13 20:14:37 +00:00
Renovate Bot
aa44de5d91
Update dependency @types/node to v12.12.39
2020-05-13 02:16:27 +00:00
Renovate Bot
61a630e6d2
Update dependency @types/node to v12.12.38
2020-05-05 20:15:38 +00:00
Rish
ef9fa8e623
Published new versions
...
- @tryghost/magic-link@0.4.4
- @tryghost/members-api@0.18.3
- @tryghost/members-ssr@0.7.7
2020-04-30 16:08:09 +05:30
Renovate Bot
13a1ff1451
Update dependency @types/node to v12.12.37
2020-04-22 03:15:54 +00:00
Rish
66e106e3ac
Published new versions
...
- @tryghost/magic-link@0.4.3
- @tryghost/members-api@0.18.2
- @tryghost/members-ssr@0.7.6
2020-04-21 15:32:00 +05:30
Renovate Bot
dbb041e214
Update dependency @types/node to v12.12.36
2020-04-17 21:38:50 +00:00
Nazar Gargol
07cb94d57e
Published new versions
...
- @tryghost/magic-link@0.4.2
- @tryghost/members-api@0.18.1
- @tryghost/members-ssr@0.7.5
2020-04-17 14:09:59 +12:00
Renovate Bot
5d687a3548
Update dependency @types/node to v12.12.35
2020-04-08 20:35:00 +00:00
Renovate Bot
280f4ea7cb
Update dependency @types/jsonwebtoken to v8.3.9
2020-04-07 03:15:52 +00:00
Renovate Bot
09f79b10ac
Update dependency @types/node to v12.12.34
2020-03-31 00:07:17 +00:00
Renovate Bot
d6897df163
Update dependency @types/node to v12.12.33
2020-03-30 23:20:06 +00:00
Renovate Bot
aa086e8728
Update dependency @types/node to v12.12.32
2020-03-27 18:15:22 +00:00
Renovate Bot
65d1040aad
Update dependency @types/node to v12.12.31
2020-03-25 07:18:47 +00:00
Renovate Bot
3b4317b988
Update dependency @types/nodemailer to v6.4.0
2020-03-13 05:30:18 +00:00
Renovate Bot
650d578ef8
Update dependency @types/jsonwebtoken to v8.3.8
2020-03-13 04:32:42 +00:00
Renovate Bot
a3f34c5905
Update dependency @types/node to v12.12.30
2020-03-13 02:33:25 +00:00
Rish
cf6b9501ca
Published new versions
...
- @tryghost/magic-link@0.4.1
- @tryghost/members-api@0.15.0
2020-02-12 16:44:08 +05:30
Rishabh Garg
789462aa5f
✨ Added labels to member signup flow ( #124 )
...
no issue
refs https://github.com/TryGhost/Ghost/pull/11538
2020-02-12 16:42:49 +05:30
Nazar Gargol
6de6a15376
Published new versions
...
- @tryghost/magic-link@0.4.0
- @tryghost/members-api@0.14.0
2020-02-06 18:04:18 +08:00
Naz
2a51a478fc
Exposed getMagicLink method ( #123 )
...
refs https://github.com/TryGhost/Ghost/pull/11573
- Adds `getMagicLink` method to members-api which can be used to generate a signin link for the member
2020-02-06 17:08:39 +08:00
Nazar Gargol
911d5a27fe
Published new versions
...
- @tryghost/magic-link@0.3.3
- @tryghost/members-api@0.11.0
- @tryghost/members-ssr@0.7.4
2020-01-13 15:54:59 +07:00
John O'Nolan
a122aa0119
2020
2020-01-07 19:06:08 +00:00
Fabien O'Carroll
9da1a18770
Published new versions
...
- @tryghost/magic-link@0.3.2
- @tryghost/members-api@0.9.0
- @tryghost/members-ssr@0.7.3
2019-11-05 18:22:07 +07:00
Renovate Bot
297425402b
Update dependency @types/nodemailer to v6.2.2
2019-11-05 16:53:53 +07:00
Renovate Bot
b1fe580834
Update dependency @types/jsonwebtoken to v8.3.5
2019-11-05 16:53:39 +07:00
Renovate Bot
2ce0c5a992
Update Test & linting packages
2019-11-01 13:40:10 +07:00
Renovate Bot
7684ad51c4
Update Node.js to 12
2019-11-01 13:40:00 +07:00
Fabien O'Carroll
a35d947413
Published new versions
...
- @tryghost/magic-link@0.3.1
- @tryghost/members-api@0.8.3
- @tryghost/members-ssr@0.7.2
2019-10-30 15:24:07 +07:00
Renovate Bot
97c9567744
Update dependency @types/node to v12.7.12
2019-10-14 12:38:19 +07:00
Fabien O'Carroll
ebbf4e69f9
Published new versions
...
- @tryghost/magic-link@0.3.0
- @tryghost/members-api@0.8.2
2019-10-11 12:03:51 +07:00
Fabien O'Carroll
47ed334597
Updated use of magic-link module to pass subject
...
no-issue
This takes advantage of magic-links smaller tokens
2019-10-11 11:58:23 +07:00
Fabien O'Carroll
4c4d5aab91
Removed the need for audience and issuer claim
...
no-issue
This is unecessary as this is a closes system, the tokens are issued and
intended for the same service, using the same secret
2019-10-11 11:58:23 +07:00
Fabien O'Carroll
483654a4b6
Removed user object from magic links
...
no-issue
This means magic link will rely solely on the `sub` claim for identifying the user
2019-10-11 11:58:23 +07:00
Fabien O'Carroll
7a512f992b
Updated to use HS256 signatures for tokens
...
no-issue
This makes the tokens a little more acceptable in plaintext emails
2019-10-11 11:58:23 +07:00
Fabien O'Carroll
5d2e20fbb7
Published new versions
...
- @tryghost/magic-link@0.2.2
- @tryghost/members-api@0.8.1
2019-10-10 20:21:23 +07:00
Fabien O'Carroll
2de53f8571
Support custom subject line with getSubject option
...
no-issue
2019-10-10 20:20:46 +07:00
Fabien O'Carroll
1e8bac111f
Pass email to getHTML and getSubject
...
no-issue
This will allow email templates to include the recipient
2019-10-10 20:20:46 +07:00
Fabien O'Carroll
2c4732b46d
Published new versions
...
- @tryghost/magic-link@0.2.1
- @tryghost/members-api@0.8.0
- @tryghost/members-ssr@0.7.0
2019-10-09 10:51:35 +07:00
Renovate Bot
baee3ad0ac
Update dependency @types/node to v12.7.11
2019-10-08 18:19:58 +07:00
Fabien O'Carroll
d85ea20ad2
Published new versions
...
- @tryghost/magic-link@0.2.0
- @tryghost/members-api@0.7.0
2019-10-01 14:47:27 +07:00
Fabien O'Carroll
d2634c7c7b
Added type param to content generation functions
...
no-issue
This will allow conditional logic based on the type passed to sending the magic-link
2019-10-01 14:46:17 +07:00
Fabien O'Carroll
5170c7c1d4
Published new versions
...
- @tryghost/magic-link@0.1.4
- @tryghost/members-api@0.6.2
- @tryghost/members-ssr@0.5.2
2019-10-01 11:21:07 +07:00
Renovate Bot
0a0caca573
Update dependency @types/node to v12.7.8
2019-09-30 11:20:50 +07:00
Renovate Bot
ab023e1df9
Update Test & linting packages
2019-09-30 01:35:30 +00:00
Fabien O'Carroll
ff0dc6a168
Published new versions
...
- @tryghost/magic-link@0.1.3
- @tryghost/members-api@0.6.0
- @tryghost/members-ssr@0.5.1
2019-09-25 17:13:00 +07:00
Renovate Bot
2c79eec311
Update dependency @types/jsonwebtoken to v8.3.4
2019-09-23 01:26:26 +00:00
Fabien O'Carroll
58cb25fe86
Published new versions
...
- @tryghost/magic-link@0.1.2
- @tryghost/members-api@0.5.3
- @tryghost/members-browser-auth@0.2.3
- @tryghost/members-gateway-api@0.1.7
- @tryghost/members-ssr@0.5.0
- @tryghost/members-theme-bindings@0.2.6
2019-09-16 14:01:13 +08:00
Renovate Bot
12dfdc9b25
Update dependency @types/node to v12.7.5
2019-09-16 01:27:09 +00:00
Fabien O'Carroll
b834c70559
Published new versions
...
- @tryghost/magic-link@0.1.1
- @tryghost/members-api@0.5.1
- @tryghost/members-auth-pages@1.1.3
- @tryghost/members-browser-auth@0.2.2
- @tryghost/members-gateway-api@0.1.6
- @tryghost/members-gateway-protocol@0.1.4
- @tryghost/members-ssr@0.4.0
- @tryghost/members-theme-bindings@0.2.5
2019-09-09 15:53:10 +08:00
Renovate Bot
84f9e69a50
Update dependency sinon to v7.4.2
2019-09-09 13:57:00 +08:00
Renovate Bot
04d5f0b0b6
Update dependency @types/node to v12.7.4
2019-09-09 01:28:21 +00:00
Fabien O'Carroll
33ff98f789
Published new versions
...
- @tryghost/magic-link@0.1.0
- @tryghost/members-api@0.4.0
- @tryghost/members-auth-pages@1.1.1
- @tryghost/members-browser-auth@0.2.1
- @tryghost/members-gateway-api@0.1.5
- @tryghost/members-gateway-protocol@0.1.3
- @tryghost/members-ssr@0.3.0
- @tryghost/members-theme-bindings@0.2.4
2019-09-03 18:25:17 +08:00
renovate[bot]
047484a51b
Pin dependencies ( #21 )
2019-09-03 16:53:48 +08:00
Fabien O'Carroll
fa54dc569e
Created @tryghost/magic-link module ( #50 )
...
* slimer create magic-link
Created the initial magic-link project
* Added usage section to README
* Installed types and deps for magic-link
* Added tsconfig.json
* Initial commit for magic-link module
* Renamed hello.test.js -> index.test.js
* Added initial basic test
* Removed test util directory
* Updated ecmaVersion for test eslint parserOptions
* Added tests for MagicLink
* Added language to README usage codeblock
* Updated sendMagicLink to return SentMessageInfo
* Updated README
* Updated README usage example
* Fixed types
2019-09-03 11:07:03 +08:00