[PR #944] [MERGED] [Fix] Websocket Tokens Refresh issue #1073

Closed
opened 2026-02-04 19:15:11 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/pelican-dev/panel/pull/944
Author: @F9Alejandro
Created: 1/25/2025
Status: Merged
Merged: 1/26/2025
Merged by: @rmartinoscar

Base: mainHead: issue/websocket-token-refresh


📝 Commits (2)

  • af23650 - Temporary fix for token refresh issue.
  • 439b9b2 Update server-console.blade.php

📊 Changes

2 files changed (+15 additions, -11 deletions)

View changed files

📝 app/Filament/Server/Widgets/ServerConsole.php (+6 -0)
📝 resources/views/filament/components/server-console.blade.php (+9 -11)

📄 Description

Basic fix of current issue of tokens not refreshing. It looks like once the blade is cached it turns static and doesn't properly update variables until a page reload occurs.

Workaround is to have livewire dispatch any token requests and handle them on a public tokenRequest function that will inturn send another dispatch with the token from $this->getToken() and handle the final websocket message for auth with the token.

Any further requests or issues, even suggestions are welcome.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/pelican-dev/panel/pull/944 **Author:** [@F9Alejandro](https://github.com/F9Alejandro) **Created:** 1/25/2025 **Status:** ✅ Merged **Merged:** 1/26/2025 **Merged by:** [@rmartinoscar](https://github.com/rmartinoscar) **Base:** `main` ← **Head:** `issue/websocket-token-refresh` --- ### 📝 Commits (2) - [`af23650`](https://github.com/pelican-dev/panel/commit/af23650149e7ab35b2aef8561050b07318ad71da) - Temporary fix for token refresh issue. - [`439b9b2`](https://github.com/pelican-dev/panel/commit/439b9b25686b2f816310a4c486f87d7f86aa57f0) Update server-console.blade.php ### 📊 Changes **2 files changed** (+15 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `app/Filament/Server/Widgets/ServerConsole.php` (+6 -0) 📝 `resources/views/filament/components/server-console.blade.php` (+9 -11) </details> ### 📄 Description Basic fix of current issue of tokens not refreshing. It looks like once the blade is cached it turns static and doesn't properly update variables until a page reload occurs. Workaround is to have livewire dispatch any token requests and handle them on a public tokenRequest function that will inturn send another dispatch with the token from $this->getToken() and handle the final websocket message for auth with the token. Any further requests or issues, even suggestions are welcome. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-04 19:15:11 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel#1073