You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Many Angular applications will have an authentication service that manages the API access tokens. Consider the following example, where the ApiModule's forRoot() method is used to set the API configuration (basePath, accessToken, etc.) for the application:
However, in this example, it's not possible to access the AuthService already in Angular's AppModule and update the accessToken as soon as the AuthService updates it. Similar to what is mentioned in swagger-api/swagger-codegen#5996 (comment).
Describe the solution you'd like
We should add an example based on kewur's answer to the README.md of generated API libraries for Angular/TypeScript.
Describe alternatives you've considered
n/a
Additional context
I have a PR ready that adds this example to README.md, will link it to this issue.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Many Angular applications will have an authentication service that manages the API access tokens. Consider the following example, where the ApiModule's
forRoot()
method is used to set the API configuration (basePath, accessToken, etc.) for the application:However, in this example, it's not possible to access the
AuthService
already in Angular's AppModule and update the accessToken as soon as theAuthService
updates it. Similar to what is mentioned in swagger-api/swagger-codegen#5996 (comment).Describe the solution you'd like
We should add an example based on kewur's answer to the README.md of generated API libraries for Angular/TypeScript.
Describe alternatives you've considered
n/a
Additional context
I have a PR ready that adds this example to
README.md
, will link it to this issue.The text was updated successfully, but these errors were encountered: