thisbejim / Pyrebase

A simple python wrapper for the Firebase API.
2.06k stars 527 forks source link

login authentication #358

Open RajatGaonkar opened 4 years ago

RajatGaonkar commented 4 years ago

there is no option to get the current user so that we can check if the user is logged in or not at the app startup, which is provided in java API

tinmarr commented 4 years ago

Most Python web frameworks have methods to check for this. Flask has Flask-Login and Django has its default thing.

RajatGaonkar commented 4 years ago

I was designing an app using kivy. That Doesn't have this option. Whereas this feature is available in JS

On Fri, Sep 4, 2020, 8:23 AM Martin Chaperot-Merino < notifications@github.com> wrote:

Most Python web frameworks have methods to check for this. Flask has Flask-Login and Django has its default thing.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/thisbejim/Pyrebase/issues/358#issuecomment-686869677, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQF7WUVLOVTJGF6LXL3E73LSEBJBPANCNFSM4QBIH3JA .

DafzNet commented 4 years ago

auth.get_account_info(user['idToken'])

Not sure how you'll use it though but that dictionary contains a current user last seen (login time) held by firebase