Process incoming JWT WebSocket messages

This commit is contained in:
D. Berge
2024-05-01 10:20:09 +02:00
parent c6b99563d9
commit 2fb1c5fdcc

View File

@@ -82,6 +82,8 @@ export default {
if (event.channel == "project" && event.payload?.schema == "public") {
// Projects changed in some way or another
await this.refreshProjects();
} else if (event.channel == ".jwt" && event.payload?.token) {
await this.setCredentials({token: event.payload?.token});
}
}
},