-
Notifications
You must be signed in to change notification settings - Fork 90
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
Login with Phone authenticated using Firebase #35
Comments
@asongkai just use 'token' as a password for the user. For it before call
More detail in our documentation. |
Thank you for response! I'm not sure what is really happening, I do as mentioned but still not able to login Error Log:
Updated Code:
|
You misunderstood me, you have to use the token as a password only for chat connection, not everywhere. It means you have to authorize via Firebase phone auth first, then use this token for chat login. |
Hi, I used the following code it works but I have another question,
Do I need to create a new Session token and login to chat every time the app open? or Connectycube manage the session like Firebase instance? because I tried to put them in separate method only response like "unauthenticate", "session invalid". |
No, in the current realisation of our Flutter SDK we don't have an automatic session management, you have to realise it by yourself. |
As I mentioned above once I can login and created the user session if I close the app and reopen the session has gone which can't use other feature like chat or video call that's force me to login every time I open my app and the process of logging in is so slow too which make my app load slow at the start. |
The demo app also same if I close the app and reopen the session has gone the same, need to select a user again and login again So, once I authenticated with firebase and I try to create the user session token in a separate thread it only show me "Unauthorized" message on response so the solution for my case now is like I posted the code above I mentioned firebase instance because "Yes, I have to do the user session by myself in order to redirect user to login or home screen" but I don't have to authenticate again or login again to be able to use the chat or video feature. but current case is once I logged in I can use but if I close the app and reopen and go to use chat or video it said "Unauthenticated" |
As I said before, the current version of our SDK doesn't have a session manager yet and you can realize it by yourself.
|
Thank you very much I will give that try |
Hi, I do as you mentioned by why the token expiry date is always null
What's wrong? |
we found the issue on the SDK side, we will provide fixes in the next release, thank you for your checks. |
@asongkai today we released version 0.5.1 with required fixes for your issue. |
Closing. If you have a similar issue in the latest version, please create a new ticket with a description according to templates. |
Hi,
I able to login with Firebase as per documentation but not able to login to chat.
Code:
Error Log:
The text was updated successfully, but these errors were encountered: