Fabien O'Carroll
8ae95f6d32
Updated to return Promise.reject rather than throw
...
no-issue
This is cleaner IMO
2019-04-16 12:22:55 +02:00
Fabien O'Carroll
eaf163cb9c
Updated to use membersApi iss as expected aud
...
no-issue
This is because we now use specific URLs for audiences claims, e.g. for
members running locally the audience would be:
- http://localhost:2368/ghost/api/v2/members/
2019-04-16 12:22:55 +02:00
Fabien O'Carroll
524e32bed5
Removed unused token parsing and cookie checks
...
no-issue
We no longer store anything in document.cookie, so all of this code is
redundant
2019-04-16 12:22:55 +02:00
Fabien O'Carroll
17fd366e3b
Updated SDK to use new serverside rendering
...
no-issue
2019-04-16 12:22:55 +02:00
Fabien O'Carroll
db74ef3d1a
Used return value of {set,remove}Cookie
...
no-issue
Soon these functions will make network calls, returning them allows us to use promises
2019-04-16 12:22:55 +02:00
Fabien O'Carroll
02468bfe0c
Fixed cookie verification handling
...
no-issue
turns out the get method fails if the cookie is missing, rather than returning null
2019-04-16 12:22:55 +02:00
Fabien O'Carroll
1ee0720ed5
Ran yarn add concat-stream
...
no-issue
Used for getting contents of request stream
2019-04-16 12:22:55 +02:00
Fabien O'Carroll
5c9ed65b06
Added runnable example w/ mock membersApi
2019-04-16 12:22:55 +02:00
Fabien O'Carroll
2e40e253d6
Implemented MVP
2019-04-16 12:22:55 +02:00
Fabien O'Carroll
47f46d5b9b
Added example usage to README
2019-04-16 12:22:55 +02:00
Fabien O'Carroll
e55430c726
Ran yarn add --dev keypair
2019-04-16 12:22:55 +02:00
Fabien O'Carroll
d4a8e3dc1e
Ran yarn add cookies jsonwebtoken
2019-04-16 12:22:55 +02:00
Fabien O'Carroll
803b09664c
Ran slimer new members-ssr
2019-04-16 12:22:55 +02:00
Fabien O'Carroll
cbbd28cc90
Ensured that signups/signins get fresh token
...
no-issue
This is to avoid any weirdness around the two requests for signup to a
paid site. First we have the signup request, and then we have the create
subscription request. After the first signup request a "signedin" event
is fired, fetching a token, but one without any plans.
2019-03-25 09:35:07 +01:00
Fabien O'Carroll
036b195af9
Fixed upgrade not updating member state on reload
...
no-issue
The problem here is that upgrade would recieve the same token from the
localStorage cache, rather than a brand new token with the plan info.
2019-03-25 09:35:07 +01:00
Fabien O'Carroll
487326aef5
Updated layer2 to pass fresh param to layer1
...
no-issue
This is needed so that the theme dropin script can ensure that a new
token is recieved after upgrade
2019-03-25 09:35:07 +01:00
Fabien O'Carroll
709a1cce4e
Updated layer1 to pass fresh param to gateway
...
no-issue
This is needed so that we can request a brand new token from layer1, in
the instance of knowing user data has changed, we can have a token whihc
reflects it.
2019-03-25 09:35:07 +01:00
Fabien O'Carroll
5dfcbb6b5e
Added missing semicolons
...
no-issue
2019-03-25 09:35:07 +01:00
Fabien O'Carroll
e553ea6e02
Corrected refs for content-api and layer1 deps
...
no-issue
content-api is not in same repo any more, layer1 brought inline with how
layer2 works
2019-03-25 09:35:07 +01:00
Rish
e6e5209a8c
Moved members SDK packages from Ghost-SDK
2019-03-14 13:16:15 +05:30
Rish
ef01a65da5
✨ Initial commit
2019-03-14 12:14:23 +05:30
Fabien O'Carroll
cfac2339cb
Updated members drop-in script to set cookie for SSR ( #61 )
...
no-issue
2019-02-25 10:17:58 +01:00
Rish
db8d51f458
Updated members SDK
2019-02-23 17:29:02 +07:00
Fabien O'Carroll
7c360aa51d
Updated members SDK to handle upgrade ( #52 )
...
no-issue
Adds update method to layer 2
Adds update support to drop in script
Improves flickering
2019-02-23 04:33:14 +01:00
Fabien O'Carroll
8d2bbe5b0d
Updated members sdk to latest content-api ( #45 )
...
no-issue
* Upgrade to latest content api
* Removed unused closeAuth
* Removed auto close of popup and wait for event
* Added globals to top of file
2019-02-06 17:03:55 +01:00
John O'Nolan
0f6809bab5
2019
2019-01-01 14:38:49 +00:00
Fabien O'Carroll
51be84182d
Updated members sdks for third party use ( #25 )
...
* Pass container from layer2 for iframes to be attached
* Updated layer2 to resolve with success for auth page methods
* Updated theme dropin to reload when auth method succeeds
2018-12-10 15:55:10 +07:00
Fabien O'Carroll
b990761136
Updated layer2 to listen to close request from auth popup
2018-12-09 14:00:02 +07:00
Fabien O'Carroll
aec178ee8b
Removed hash after password reset
2018-12-07 18:59:47 +07:00
Fabien O'Carroll
cf6822ba36
Fixed JWT regex
2018-12-07 16:21:52 +07:00
Fabien O'Carroll
9b105e7590
Members update ( #24 )
...
* Ignored build
* Deleted build dir
* Updated layer1 to interface with simplified gateway
* Updated layer1 to only handle gateway
* Updated layer2 to handle gateway & auth, but no DOM
* Updated theme dropin to handle DOM
* Updated layer2;
* Added password-reset flow to the member dropin script
* Reload page after password reset
2018-12-07 14:32:23 +05:30
Zimo
eddcbaff5b
Update position of auth iFrame
2018-12-04 19:42:47 +01:00
Zimo
481b9d6459
Update members iFrame style
2018-12-04 19:33:21 +01:00
Zimo
0c8af4fa64
Update members auth iFrame style
2018-12-04 19:24:03 +01:00
Fabien O'Carroll
cb5592d853
Updated member layers ( #23 )
...
* Corrected the event handling of layer0
* Updated layer1 to use layer0
* Updated dropin script to read blogUrl from window;
2018-12-04 09:24:04 +05:30
Fabien O'Carroll
399219b6ea
Members layer0 ( #22 )
...
* Created initial layer0 sdk
* Updated layer1 to use layer0
* Updated layer2 to accept and pass blogUrl to layer1
* Updated theme-dropin to pass blogUrl to layer2
* Updated yarn.lock
2018-11-23 15:43:16 +07:00
Rishabh Garg
56bbc14d43
Created drop-in script module for ghost themes ( #19 )
...
* Added WIP drop-in script for prototype
* Cleaned up theme dropping script module
- Updated layer2 to work with reload as an option, as well as sign-in cta on the page
* Handle cat failure
* Updated SDK data attires
* Used commonjs exports
* Used browserify for the build
2018-11-15 14:36:51 +07:00
Fabien O'Carroll
dacd58c768
Update packages/members/layer2/index.js
2018-11-14 17:36:26 +05:30
Fabien O'Carroll
52759bceb1
Updated layer2 to inline with drop in solution
2018-11-14 17:36:26 +05:30
Fabien O'Carroll
37e8d5b670
Updated README for members layer2 SDK
2018-11-14 15:12:59 +07:00
Fabien O'Carroll
51a5e53c06
Updated layer2 drop in script to set/unset cookies ( #17 )
...
* Updated layer2 drop in script to set/unset cookies
* Use ES5 and remove transforms
2018-11-14 15:09:29 +07:00
Fabien O'Carroll
7fdbd57667
Fixed logout for members layer1
...
no-issue
LocalStorage converts items to strings so "null" was being stored.
2018-11-14 12:06:46 +07:00
Fabien O'Carroll
d4f8fc89a3
Created initial layer2 for Members SDK
...
closes #9
2018-11-14 08:47:17 +05:30
Fabien O'Carroll
d201b62f73
Fixed jwt sign method call
...
no-issue
2018-11-13 15:23:36 +05:30
Rish
7366f6bf4c
Updated members layer1 to handle create/destroy/get jwt token
...
closes #11
- Uses signed jwt with NONE algorithm
- Token stored in localStorage
2018-11-12 13:59:59 +07:00
Rish
32ee16a081
Created members-layer1 sdk base structure
...
closes #8
2018-11-09 13:24:16 +05:30