fix: remove v

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-07-11 17:17:08 +08:00
parent 96485e06b0
commit ad98801f5e
+3 -6
View File
@@ -3,7 +3,6 @@ import type { UserSchema } from "@follow/database/schemas/types"
import { UserService } from "@follow/database/services/user"
import type { AuthSession } from "@follow/shared/hono"
import { create, indexedResolver, windowScheduler } from "@yornaath/batshit"
import { nanoid } from "nanoid"
import { apiClient, authClient } from "../context"
import type { Hydratable, Resetable } from "../internal/base"
@@ -67,11 +66,9 @@ class UserSyncService {
})
async whoami() {
const res = (await (apiClient()["better-auth"] as any)["get-session"].$get({
query: {
v: nanoid(8),
},
})) as AuthSession | null
const res = (await (apiClient()["better-auth"] as any)[
"get-session"
].$get()) as AuthSession | null
if (res) {
const user = honoMorph.toUser(res.user, true)
immerSet((state) => {