feat(users): add reset password functionality for users and implement forgot password page

This commit is contained in:
Tran Anh Tuan
2026-02-03 17:33:47 +07:00
parent 9bc15192ec
commit dca363275e
35 changed files with 1592 additions and 321 deletions

View File

@@ -1,5 +1,5 @@
import ReconnectingWebSocket from 'reconnecting-websocket';
import { getToken } from './storage';
import { getAccessToken } from './storage';
type MessageHandler = (data: any) => void;
@@ -16,7 +16,7 @@ class WSClient {
if (this.ws) return;
let token = '';
if (isAuthenticated) {
token = getToken();
token = getAccessToken();
}
let wsUrl = url;
if (url.startsWith('/')) {