nlw-06-reactjs
nlw-06-reactjs copied to clipboard
auth.esm.js:60 A boolean is being passed as a fourth parameter to window.open. This is not used and may cause an exception in a future release.
Ao tentar criar uma sala, o popup de autenticação aparece, depois fecha sozinho, e no log de erro aparece:
auth.esm.js:60 A boolean is being passed as a fourth parameter to window.open. This is not used and may cause an exception in a future release.
Criei também função a seguir no AuthContext.tsx
async function signOut() {
await auth.signOut()
setUser(undefined)
}
Chamei esta função em page/Rooms.tsx
num botão para fazer o signOut()
e incluí uma chamada ao signIn()
Depois de desconectar, eu tento logar novamente e ocorre o erro também.