TOC
Steps
References
Steps:
git clone https://github.com/Azure-Samples/ms-identity-docs-code-javascript.git
clientId | Specify the Application (client) ID obtained in step 2 |
authority | Fill in the Directory (tenant) ID obtained in step 2 in the specified format. (https://login.microsoftonline.com/<TENANT_ID>) |
redirectUri | Fill in the App Name obtained in step 4 in the specified format. (https://<APP_NAME>.azurewebsites.net/.auth/login/aad/callback) |
npm install
npm run build
[config]
SCM_DO_BUILD_DURING_DEPLOYMENT=false
pm2 serve /home/site/wwwroot --no-daemon --spa
References:
Quickstart: Sign in to a SPA & call an API - React - Microsoft identity platform | Microsoft Learn
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.