Skip to content

Commit

Permalink
api audience
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliohome committed Oct 9, 2023
1 parent 978a23d commit df6d56b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/main_sqltodo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
npm install
echo "check react env var"
echo "$REACT_APP_AUTH0_DOMAIN"
echo "check api audience"
echo "$REACT_APP_AUTH0_DOMAIN"
npm run build --if-present
- name: Upload artifact for deployment job
Expand Down
4 changes: 3 additions & 1 deletion src/web/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const App: FC = () => {
const initialContext: AppContext = { state: applicationState, dispatch: dispatch }
const domain = process.env.REACT_APP_AUTH0_DOMAIN??"";
const clientId = process.env.REACT_APP_AUTH0_CLIENT_ID??"";
const api_audience = process.env.REACT_APP_AUTH0_AUDIENCE ?? "";

initializeIcons();

Expand All @@ -24,7 +25,8 @@ export const App: FC = () => {
domain={domain}
clientId={clientId}
authorizationParams={{
redirect_uri: window.location.origin
redirect_uri: window.location.origin,
audience: api_audience
}}
>
<ThemeProvider applyTo="body" theme={DarkTheme}>
Expand Down

0 comments on commit df6d56b

Please sign in to comment.