.
This commit is contained in:
1 parent
d0ae8ffb0e
commit
d1f7b0c916
6 files changed
+263
-12
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user