Authentication Problem: Unable to sign in with a Microsoft Account
Describe the bug/Problem
I have followed the step as per the README.MD but on the final step, I'm unable to authenticate accordingly. Can please help?
Additional info:
- Dotnet 6 and 7 installed
- OS: Windows 10
====================================
Screenshot
1. http://localhost:3000/ preview
(The Authentication button is not clickable)
2. Dotnet run as per intended
3. Yarn run as per intended
me too
**Desktop OS:Centos 7 commit 6afcbe25b9aa63d9952f63936962784ee4434510 donet 6 yarn --version 1.22.19 node -v v16.18.1
AuthError.ts:49 Uncaught (in promise) BrowserAuthError: pkce_not_created: The PKCE code challenge and verifier could not be generated. Detail:TypeError: Cannot read properties of undefined (reading 'digest')
at BrowserAuthError.AuthError [as constructor] (AuthError.ts:49:1)
at new BrowserAuthError (BrowserAuthError.ts:199:1)
at BrowserAuthError.createPkceNotGeneratedError (BrowserAuthError.ts:211:1)
at PkceGenerator.
Ah, I just realized that the problem is on .env file...
Need to follow this step carefully:
Open a terminal and navigate to samples/apps/copilot-chat-app/webapp Copy env.example into a new file .env and update the REACT_APP_AAD_CLIENT_ID with the AAD application (Client) ID created above. For example:
REACT_APP_BACKEND_URI=https://localhost:40443/ REACT_APP_AAD_CLIENT_ID={Your Application (client) ID} REACT_APP_AAD_AUTHORITY=https://login.microsoftonline.com/common
I will close this out.