Configuring OAuth2 access token to typescript-angular2 client
问题 I do not fully understand how to provide OAuth2 access token from a promise (oidc-client-js) to API code generated with Swagger-CodeGen. It is easy to provide constant values, but how do I change below to get the user's access token from oidc-client-js? I would like to know the "correct" way. It would be easy enough to stick this token somewhere in a global variable. @NgModule({ imports: [ CommonModule, ApiModule.forConfig(() => new Configuration({ accessToken: 'my-access-token' //this can