bf63ffe424
closes https://github.com/TryGhost/Members/issues/148 - geolocation was not being fetched/stored for paid member signup - magic link was being sent after Stripe webhook but we don't have an IP at that stage - it only worked when a magic link was requested by the browser - moved the geolocation fetch/update to `members-ssr` - kept the ip geolookup and storage inside `members-api` but exposed it as a method so consumers are able to choose when it's performed - used the new api method in `members-ssr` when exchanging a token from the session as that is always driven by browser requests so we know we have an IP and it's likely the correct one (reliant on consumers having "trust proxy" config correct) - stopped storing IP addresses in the token payload (keeps links shorter) |
||
---|---|---|
.. | ||
lib | ||
test | ||
.eslintrc.js | ||
index.js | ||
package.json |