Skip to content
Merged

21.0.0 #2152

Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Angular Lib for OpenID Connect/OAuth2 Changelog

### 2025-11-02 21.0.0

- Angular 21

### 2025-11-02 20.0.3

- Fix: prevent clear() from destroying all sessionStorage
Expand Down
20 changes: 8 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,24 +122,19 @@ export class AppComponent implements OnInit {
private readonly oidcSecurityService = inject(OidcSecurityService);

ngOnInit() {
this.oidcSecurityService
.checkAuth()
.subscribe((loginResponse: LoginResponse) => {
const { isAuthenticated, userData, accessToken, idToken, configId } =
loginResponse;

/*...*/
});
this.oidcSecurityService.checkAuth().subscribe((loginResponse: LoginResponse) => {
const { isAuthenticated, userData, accessToken, idToken, configId } = loginResponse;

/*...*/
});
}

login() {
this.oidcSecurityService.authorize();
}

logout() {
this.oidcSecurityService
.logoff()
.subscribe((result) => console.log(result));
this.oidcSecurityService.logoff().subscribe((result) => console.log(result));
}
}
```
Expand Down Expand Up @@ -185,8 +180,9 @@ AuthModule.forRoot({

## Versions

Current Version is Version 20.x
Current Version is Version 21.x

- [Info about Version 20](https://github.com/damienbod/angular-auth-oidc-client/tree/version-20)
- [Info about Version 19](https://github.com/damienbod/angular-auth-oidc-client/tree/version-19)
- [Info about Version 18](https://github.com/damienbod/angular-auth-oidc-client/tree/version-18)
- [Info about Version 17](https://github.com/damienbod/angular-auth-oidc-client/tree/version-17)
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"bugs": {
"url": "https://github.com/damienbod/angular-auth-oidc-client/issues"
},
"version": "20.0.3",
"version": "21.0.0",
"scripts": {
"ng": "ng",
"build": "npm run build-lib",
Expand Down
2 changes: 1 addition & 1 deletion projects/angular-auth-oidc-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"authorization"
],
"license": "MIT",
"version": "20.0.3",
"version": "21.0.0",
"description": "Angular Lib for OpenID Connect & OAuth2",
"schematics": "./schematics/collection.json",
"ng-add": {
Expand Down
2 changes: 1 addition & 1 deletion projects/schematics/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "schematics",
"version": "20.0.3",
"version": "21.0.0",
"description": "A schematic for the Angular Lib for OpenID Connect & OAuth2",
"scripts": {
"build": "tsc -p tsconfig.json",
Expand Down
2 changes: 1 addition & 1 deletion projects/schematics/src/ng-add/actions/add-dependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { NgAddOptions } from '../models/ng-add-options';
const dependenciesToAdd: any[] = [
{
name: 'angular-auth-oidc-client',
version: '20.0.3',
version: '21.0.0',
},
];

Expand Down