mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-18 23:52:52 +00:00
Handle Discord Login in capacitor apps
This commit is contained in:
+9
-1
@@ -30,7 +30,13 @@ import { NewsButton } from "./components/NewsButton";
|
||||
import "./components/baseComponents/Button";
|
||||
import { OButton } from "./components/baseComponents/Button";
|
||||
import "./components/baseComponents/Modal";
|
||||
import { discordLogin, getUserMe, isLoggedIn, logOut } from "./jwt";
|
||||
import {
|
||||
discordLogin,
|
||||
getUserMe,
|
||||
initializeAuthListener,
|
||||
isLoggedIn,
|
||||
logOut,
|
||||
} from "./jwt";
|
||||
import "./styles.css";
|
||||
|
||||
declare global {
|
||||
@@ -77,6 +83,8 @@ class Client {
|
||||
constructor() {}
|
||||
|
||||
initialize(): void {
|
||||
initializeAuthListener();
|
||||
|
||||
const gameVersion = document.getElementById(
|
||||
"game-version",
|
||||
) as HTMLDivElement;
|
||||
|
||||
Reference in New Issue
Block a user