Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,14 @@ import { Component } from '@angular/core';
})
export class AppComponent {

constructor(private oauthService: OAuthService) {
constructor(private oAuthService: OAuthService) {
this.configureWithNewConfigApi();
}

private configureWithNewConfigApi() {
this.oauthService.configure(authConfig);
this.oauthService.tokenValidationHandler = new JwksValidationHandler();
this.oauthService.loadDiscoveryDocumentAndTryLogin();
this.oAuthService.configure(authConfig);
this.oAuthService.tokenValidationHandler = new JwksValidationHandler();
this.oAuthService.loadDiscoveryDocumentAndTryLogin();
}
}
```
Expand All @@ -173,15 +173,15 @@ import { OAuthService } from 'angular-oauth2-oidc';
})
export class HomeComponent {

constructor(private oauthService: OAuthService) {
constructor(private oAuthService: OAuthService) {
}

public login() {
this.oauthService.initImplicitFlow();
this.oAuthService.initImplicitFlow();
}

public logoff() {
this.oauthService.logOut();
this.oAuthService.logOut();
}

public get name() {
Expand Down Expand Up @@ -221,15 +221,15 @@ Pass this Header to the used method of the ``Http``-Service within an Instance o

```TypeScript
var headers = new Headers({
"Authorization": "Bearer " + this.oauthService.getAccessToken()
"Authorization": "Bearer " + this.oAuthService.getAccessToken()
});
```

If you are using the new HttpClient, use the class HttpHeaders instead:

```TypeScript
var headers = new HttpHeaders({
"Authorization": "Bearer " + this.oauthService.getAccessToken()
"Authorization": "Bearer " + this.oAuthService.getAccessToken()
});
```

Expand Down