Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem logging in #3

Open
kosirm opened this issue Oct 11, 2017 · 5 comments
Open

Problem logging in #3

kosirm opened this issue Oct 11, 2017 · 5 comments

Comments

@kosirm
Copy link

kosirm commented Oct 11, 2017

Hi, first of all thanks for this plugin, I'm quite excited about idea to connect mavo to firebase.

I would like to know if you plan to cover also new firebase database firestore, which is currently in beta, but promissing :)

Best regards

Udate: I managed to solve login problem, so consider this closed....

@kosirm kosirm closed this as completed Oct 11, 2017
@LeaVerou
Copy link
Collaborator

@kosirm Glad to hear you solved the issue. Please consider describing what it was, it may help others with the same problem!

@kosirm kosirm reopened this Oct 11, 2017
@kosirm kosirm closed this as completed Oct 11, 2017
@kosirm
Copy link
Author

kosirm commented Oct 12, 2017

Ok, I can log in, which is resolved (it was my fault... database rules were not set properly), but there are still 2 issues, which I would like to mention:
first is that login persistence is not working properly... I tried to add
firebase.auth().setPersistence(firebase.auth.Auth.Persistence.SESSION)
to login function, but it is still not working.

Another problem is permissions_key error in console: this is printout

mavo-firebase.js:18 Uncaught (in promise) TypeError: Cannot read property 'permissions_key' of null
at mavo-firebase.js:18
at
(anonymous) @ mavo-firebase.js:18
Promise resolved (async)
setPermissions @ mavo-firebase.js:17
constructor @ mavo-firebase.js:13
e @ bliss.min.js:1
create @ backend.js:218
updateBackend @ mavo.js:431
constructor @ mavo.js:89
e @ bliss.min.js:1
mavos.filter.map.element @ mavo.js:664
init @ mavo.js:664
_.inited.$.ready.then.catch.then @ mavo.js:758
Promise resolved (async)
requestAnimationFrame @ mavo.js:758
requestAnimationFrame (async)
(anonymous) @ mavo.js:731
(anonymous) @ mavo.js:765

My problem is that I'm totaly new to both firebase and mavo, so sorry ...
But combination of these two looks just too good, so I need to try it out!
I will reopen this. You can rename issue, because logging in is not problem anymore :)

@kosirm kosirm reopened this Oct 12, 2017
@valterkraemer
Copy link

I have been working on my own implementation of a Firebase plugin for Mavo https://github.com/valterkraemer/mavo-firebase, it's still work in progress, but works quite nicely.

You can also check out https://github.com/valterkraemer/mavo-offline-interceptor for 4-way data-binding!

@kosirm
Copy link
Author

kosirm commented Oct 12, 2017

@valterkraemer thanks a lot! This prolonged weekend I'm on vacation so I will try to avoid working :) but for sure it will be the first thing I'll do when I'll come back. Thanks again!

@LeaVerou
Copy link
Collaborator

@valterkraemer Nice work! Add them to the plugins directory!! https://plugins.mavo.io/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants