From 2a7011b365d69c202585a42251614383120ebb5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?= <7854742+wang_rumeng@user.noreply.gitee.com> Date: Sat, 30 Aug 2025 21:03:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=20=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=94=A8=E6=88=B7=20=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/auth.ts | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/auth.ts b/lib/auth.ts index f957889..f86bb5d 100644 --- a/lib/auth.ts +++ b/lib/auth.ts @@ -248,19 +248,19 @@ export const validateOAuthState = (state: string): boolean => { * @returns {Promise} 用户信息对象 */ export const getUserProfile = async (): Promise => { - const t = { - id: '1', - userId: '1', - username: 'test', - name: 'test', - email: 'test@test.com', - role: 'USER', - isActive: 1, - authType: 'email', - lastLogin: new Date(), - } - setUser(t); - return t; + // const t = { + // id: '1', + // userId: '1', + // username: 'test', + // name: 'test', + // email: 'test@test.com', + // role: 'USER', + // isActive: 1, + // authType: 'email', + // lastLogin: new Date(), + // } + // setUser(t); + // return t; try { const token = getToken(); if (!token) {