forked from 77media/video-flow
注释 测试用户 数据
This commit is contained in:
parent
6c283f2d19
commit
2a7011b365
26
lib/auth.ts
26
lib/auth.ts
@ -248,19 +248,19 @@ export const validateOAuthState = (state: string): boolean => {
|
||||
* @returns {Promise<any>} 用户信息对象
|
||||
*/
|
||||
export const getUserProfile = async (): Promise<any> => {
|
||||
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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user