forked from auth0-samples/auth0-angular-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenvironment.ts
More file actions
39 lines (36 loc) · 1.19 KB
/
environment.ts
File metadata and controls
39 lines (36 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
import config from '../../auth_config.json';
const { domain, clientId, authorizationParams: { audience }, apiUri, errorPath } = config as {
domain: string;
clientId: string;
authorizationParams: {
audience?: string;
},
apiUri: string;
errorPath: string;
};
export const environment = {
production: false,
auth: {
domain,
clientId,
authorizationParams: {
...(audience && audience !== '{yourApiIdentifier}' ? { audience } : null),
redirect_uri: window.location.origin,
},
errorPath,
},
httpInterceptor: {
allowedList: [`${apiUri}/*`],
},
};
/*
* For easier debugging in development mode, you can import the following file
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
*
* This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown.
*/
// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.