mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
[PR #944] [MERGED] [Fix] Websocket Tokens Refresh issue #1075
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
main← Head:issue/websocket-token-refresh📝 Commits (2)
af23650- Temporary fix for token refresh issue.439b9b2Update 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.