tiledesk-server icon indicating copy to clipboard operation
tiledesk-server copied to clipboard

User register

Open MyKrzysiu opened this issue 6 years ago • 1 comments

Hello. Thanks for developing this app. ;)

I have question. We have method signup in UserService. Shouldn't this metod create user in firebase(https://firebase.google.com/docs/auth/web/password-auth#create_a_password-based_account) to use properly chat21 support panel(https://github.com/chat21/chat21-ionic)? If i'm right, I can prepare branch with this feature or i don't understand something.

Thanks in advance.

MyKrzysiu avatar Jun 07 '19 17:06 MyKrzysiu

it's firebaseauth route that create the firebase custom auth. See here: https://github.com/Tiledesk/tiledesk-server/blob/master/routes/firebaseauth.js When the agent signin into the dashboard "firebaseauth/signin" method is used. After that when the agent goes to the chat (chat21-ionic) he is automatically authenticated (using localStorage within the same domain ).

andrealeo83 avatar Jun 10 '19 08:06 andrealeo83