mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
perf: ♻️ Use global instance of composable instead of an instance per component for identities, client and settings
This commit is contained in:
parent
f1ada1745d
commit
3428e4b5b6
38 changed files with 104 additions and 131 deletions
|
|
@ -2,10 +2,6 @@ import type { ApplicationData } from "@lysand-org/client/types";
|
|||
import { nanoid } from "nanoid";
|
||||
|
||||
export const signInWithCode = (code: string, appData: ApplicationData) => {
|
||||
const identity = useCurrentIdentity();
|
||||
const identities = useIdentities();
|
||||
const client = useClient();
|
||||
|
||||
client.value
|
||||
?.fetchAccessToken(
|
||||
appData.client_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue