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>} 用户信息对象
|
* @returns {Promise<any>} 用户信息对象
|
||||||
*/
|
*/
|
||||||
export const getUserProfile = async (): Promise<any> => {
|
export const getUserProfile = async (): Promise<any> => {
|
||||||
const t = {
|
// const t = {
|
||||||
id: '1',
|
// id: '1',
|
||||||
userId: '1',
|
// userId: '1',
|
||||||
username: 'test',
|
// username: 'test',
|
||||||
name: 'test',
|
// name: 'test',
|
||||||
email: 'test@test.com',
|
// email: 'test@test.com',
|
||||||
role: 'USER',
|
// role: 'USER',
|
||||||
isActive: 1,
|
// isActive: 1,
|
||||||
authType: 'email',
|
// authType: 'email',
|
||||||
lastLogin: new Date(),
|
// lastLogin: new Date(),
|
||||||
}
|
// }
|
||||||
setUser(t);
|
// setUser(t);
|
||||||
return t;
|
// return t;
|
||||||
try {
|
try {
|
||||||
const token = getToken();
|
const token = getToken();
|
||||||
if (!token) {
|
if (!token) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user