UNPKG

@rxap/authentication

Version:

Provides authentication services, guards, and interceptors for Angular applications. It supports token-based authentication and provides features such as sign-out functionality and routing based on authentication status. This package also includes utiliti

78 lines (39 loc) 2.72 kB
[@rxap/authentication](../wiki/globals) / RxapAuthenticationService # Class: RxapAuthenticationService Defined in: [authentication.service.ts:31](https://gitlab.com/rxap/packages/-/blob/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/packages/angular/authentication/src/lib/authentication.service.ts#L31) ## Implements - [`IAuthenticationService`](../wiki/Interface.IAuthenticationService) ## Constructors ### new RxapAuthenticationService() > **new RxapAuthenticationService**(): [`RxapAuthenticationService`](../wiki/Class.RxapAuthenticationService) Defined in: [authentication.service.ts:39](https://gitlab.com/rxap/packages/-/blob/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/packages/angular/authentication/src/lib/authentication.service.ts#L39) #### Returns [`RxapAuthenticationService`](../wiki/Class.RxapAuthenticationService) ## Properties ### events$ > `readonly` **events$**: `ReplaySubject`\<[`AuthenticationEvent`](../wiki/Interface.AuthenticationEvent)\> Defined in: [authentication.service.ts:35](https://gitlab.com/rxap/packages/-/blob/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/packages/angular/authentication/src/lib/authentication.service.ts#L35) #### Implementation of [`IAuthenticationService`](../wiki/Interface.IAuthenticationService).[`events$`](../wiki/Interface.IAuthenticationService#events$) *** ### isAuthenticated$ > **isAuthenticated$**: `BehaviorSubject`\<`null` \| `boolean`\> Defined in: [authentication.service.ts:33](https://gitlab.com/rxap/packages/-/blob/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/packages/angular/authentication/src/lib/authentication.service.ts#L33) #### Implementation of [`IAuthenticationService`](../wiki/Interface.IAuthenticationService).[`isAuthenticated$`](../wiki/Interface.IAuthenticationService#isauthenticated$) ## Methods ### isAuthenticated() > **isAuthenticated**(): `Promise`\<`boolean`\> Defined in: [authentication.service.ts:49](https://gitlab.com/rxap/packages/-/blob/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/packages/angular/authentication/src/lib/authentication.service.ts#L49) #### Returns `Promise`\<`boolean`\> #### Implementation of [`IAuthenticationService`](../wiki/Interface.IAuthenticationService).[`isAuthenticated`](../wiki/Interface.IAuthenticationService#isauthenticated) *** ### signOut() > **signOut**(): `Promise`\<`void`\> Defined in: [authentication.service.ts:43](https://gitlab.com/rxap/packages/-/blob/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/packages/angular/authentication/src/lib/authentication.service.ts#L43) #### Returns `Promise`\<`void`\> #### Implementation of [`IAuthenticationService`](../wiki/Interface.IAuthenticationService).[`signOut`](../wiki/Interface.IAuthenticationService#signout)