-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Description
Versions
Angular CLI: 6.0.3
Node: 8.9.4
OS: darwin x64
Angular: 6.0.2
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.6.3
@angular-devkit/build-angular 0.6.3
@angular-devkit/build-optimizer 0.6.3
@angular-devkit/core 0.6.3
@angular-devkit/schematics 0.6.3
@angular/cli 6.0.3
@ngtools/webpack 6.0.3
@schematics/angular 0.6.3
@schematics/update 0.6.3
rxjs 6.1.0
typescript 2.7.2
Repro steps
I have a static method .forRoot to configure my authorization module with next code
@NgModule({
imports: [
AuthModule.forRoot<Auth0AdapterConfig>({
adapterConfig: {
...
redirectUri: `${location.protocol}//${location.host}/callback`,
scope: 'openid'
}
})
],
Observed behavior
When I use --aot option (explicitly or implicitly via --prod) the redirectUri parameter is replaced by hardcoded value redirectUri: "null//null/callback"
Desired behavior
AOT must preserve location variable
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels