This commit is contained in:
dahyeon committed 2026-04-25 14:53:56 -07:00
1 parent d0ae8ffb0e
commit d1f7b0c916
6 files changed
+263 -12

No files matched your search

+1 -1
View File
@@ -3,5 +3,5 @@ VITE_DEFAULT_COMMUNITY_ID=69ebe0adf627c11be2f020a1
VITE_MSAL_CLIENT_ID=15fb5a20-47e0-44fa-9a41-b50ca9d0e7e3
VITE_MSAL_AUTHORITY=https://login.microsoftonline.com/5ef88004-e953-4b04-93db-64bbf49c6863
VITE_MSAL_API_SCOPE=api://15fb5a20-47e0-44fa-9a41-b50ca9d0e7e3/lolympus-tournament-support-dev
VITE_MSAL_REDIRECT_URI=http://localhost:5173/auth/callback
VITE_MSAL_REDIRECT_URI=https://lolympus.dahyeon.us/auth/callback
+8 -3
View File
@@ -1,9 +1,9 @@
import { useMsal } from '@azure/msal-react';
import { useMsal } from "@azure/msal-react";
import {
isMsalConfigured,
MSAL_API_SCOPE,
msalInstance,
} from '../lib/auth/msal.config';
} from "../lib/auth/msal.config";
function LoginButton() {
const { instance } = useMsal();
@@ -12,7 +12,12 @@ function LoginButton() {
<button
type="button"
className="btn btn-primary btn-sm px-5"
onClick={() => void instance.loginRedirect({ scopes: [MSAL_API_SCOPE] })}
onClick={() =>
void instance.loginRedirect({
scopes: [MSAL_API_SCOPE],
prompt: "select_account",
})
}
>
Microsoft로 로그인
</button>