Skip to content

Username not changing on login #4

@97amarnathk

Description

@97amarnathk

Although firebase is used for google login, the chat user name is not set to the current user. It is hardcoded to Amarnath. Use the below snippet at newIndex.html to keep the current user chat name to the actual user's name.

firebase.auth().onAuthStateChanged((user) => {
  if (user) {
    console.log(user.uid);
  }
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions