Cleaned up login code.
This commit is contained in:
@@ -237,7 +237,6 @@ async function setupAuth(oidcIssuer)
|
||||
{
|
||||
passport.authenticate('oidc', {
|
||||
state : base64.encode(JSON.stringify({
|
||||
id : req.query.id,
|
||||
roomId : req.query.roomId,
|
||||
peerId : req.query.peerId
|
||||
}))
|
||||
@@ -283,21 +282,6 @@ async function setupAuth(oidcIssuer)
|
||||
|
||||
room.peerAuthenticated(state.peerId);
|
||||
|
||||
const socket = io.sockets.sockets[state.id];
|
||||
|
||||
if (socket)
|
||||
{
|
||||
socket.emit('notification',
|
||||
{
|
||||
method : 'auth',
|
||||
data :
|
||||
{
|
||||
displayName : displayName,
|
||||
picture : photo
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
res.send(httpHelper({
|
||||
success : true,
|
||||
displayName : displayName,
|
||||
|
||||
Reference in New Issue
Block a user