auth: rename profile.data -> profile.current

This commit is contained in:
James Xylight committed 2025-07-12 10:26:45 -07:00
1 parent 1edad4ac60
commit 36a9631707
76 files changed
+233 -224

No files matched your search

+3 -2
View File
@@ -59,9 +59,10 @@ export function client({
) => Promise<Response>
auth?: string
} = {}) {
if (!instanceURL) instanceURL = profile.data.instance || DEFAULT_INSTANCE_URL
if (!instanceURL)
instanceURL = profile.current.instance || DEFAULT_INSTANCE_URL
const jwt = auth ? auth : profile.data?.jwt
const jwt = auth ? auth : profile.current?.jwt
const headers = jwt ? { authorization: `Bearer ${jwt}` } : {}