Closed META-DREAMER closed 7 years ago
This is great! thanks for the contribution.
Can you separate this pull request into 5 different? It's too hard to review so many changes all in once
@nicolaslopezj Alright, I split it up as much as I could. Once you merge #35 I can make a pull request for the rest of the stuff since it builds on the stuff in #35.
@nicolaslopezj Alright all the changes are split up into separate pull requests. You can ignore this pull request. Merge #33 and #34 first, and after that merge #35 to #38 in order since they each build on each other. Let me know if this works!
Would love to see this published to atmosphere and npm soon so I can get it working in my app without hacks. Since the client package is a subfolder of the repo, npm doesnt let me install the package with the git URL, really annoying haha.
initWithClient(apolloClientInstance)
function to remove need for passing apollo with every function calluserId()
is now synchronous and more performant since it's cached in memoryonLogin
,onLoginFailure
,onLogout
so the API is similar to Meteor AccountsloggingIn
function, similar to Meteor AccountsinitWithClient
in your app, it will check for a stored token and attempt to login, calling theonLogin
callback if it succeeds.