refactor(auth): 将认证状态迁移至独立登录 store
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import axios from 'axios'
|
||||
|
||||
import { request } from '@/utils/request'
|
||||
import { saveAuthSession } from '@/utils/auth-storage'
|
||||
import type {
|
||||
AuthenticatedUser,
|
||||
CurrentUserResponse,
|
||||
@@ -78,7 +77,6 @@ export async function login(payload: LoginRequest): Promise<LoginResponse> {
|
||||
user: normalizeAuthenticatedUser(session.user),
|
||||
}
|
||||
|
||||
saveAuthSession(normalizedSession)
|
||||
return normalizedSession
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user