Skip to content

Commit

Permalink
fix: show anon/user id on auth success message
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed Dec 24, 2020
1 parent 24352ee commit d090dc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ io.on("connection", (socket) => {

const msg =
!socket.uid || socket.uid.includes("anon")
? "anonymous user"
: "user authenticated";
? "anonymous user: " + auth.uid
: "user authenticated: " + auth.email;
log(msg, socket);

sendStats(socket);
Expand Down

0 comments on commit d090dc2

Please sign in to comment.