Skip to main content

Version 17 to 18

TL;DR: Breaking Changes

  • Dropped support for Angular 15

TL;DR: New Features

  • Add new standalone/functional API's

Dropped support for Angular 15

Angular 15 support is dropped because we want to make us of Signals.

Add authenticated and userData Signals to the OidcSecurityService service

@Component({
selector: 'app-root',
template: `
@if (authenticated().isAuthenticated) {
<pre>{{ userData() | json }}</pre>
} @else {
<div>You are not authenticated.</div>
}
`,
})
export class AppComponent {
private readonly oidcSecurityService = inject(OidcSecurityService);

// Signal containing authenticated state
protected readonly authenticated = this.oidcSecurityService.authenticated;

// Signal containing user data
protected readonly userData = this.oidcSecurityService.userData;
}