Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move authority out from Constants.ts to the .env (env.example) #635

Merged
merged 4 commits into from
Apr 25, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions samples/apps/copilot-chat-app/webapp/env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
REACT_APP_BACKEND_URI=https://localhost:40443/
REACT_APP_AAD_AUTHORITY=https://login.microsoftonline.com/common
adrianwyatt marked this conversation as resolved.
Show resolved Hide resolved
REACT_APP_AAD_CLIENT_ID=
2 changes: 1 addition & 1 deletion samples/apps/copilot-chat-app/webapp/src/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const Constants = {
method: 'redirect', // 'redirect' | 'popup'
auth: {
clientId: process.env.REACT_APP_AAD_CLIENT_ID as string,
authority: `https://login.microsoftonline.com/common`,
authority: process.env.REACT_APP_AAD_AUTHORITY as string,
},
cache: {
cacheLocation: 'localStorage',
Expand Down