Skip to content

Commit

Permalink
backport ui and auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Percslol committed Dec 27, 2024
1 parent 99b0120 commit 6317697
Show file tree
Hide file tree
Showing 3 changed files with 280 additions and 185 deletions.
4 changes: 2 additions & 2 deletions src/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface CapeInfo extends AccessoryInfo {
alias: string;
}

const CLIENT_ID = "a370fff9-7648-4dbf-b96e-2b4f8d539ac2";
const CLIENT_ID = "c36a9fb6-4f2a-41ff-90bd-ae7cc92031eb";

interface OAuthResponse {
access_token: string;
Expand Down Expand Up @@ -268,4 +268,4 @@ export async function joinServer(
}),
}
);
}
}
5 changes: 3 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,19 @@ const nativeFetch = fetch;
export type AuthStore = {
user: UserInfo | null;
yggToken: string;
yggRefresh: string;
msToken: string;
};

export type TokenStore = {
username: string;
token: string;
ms: string;
};

export let authstore: AuthStore = {
user: null,
yggToken: "",
yggRefresh: "",
msToken: "",
};

if (localStorage["wispcraft_accounts"]) {
Expand Down
Loading

0 comments on commit 6317697

Please sign in to comment.