@acontplus/ng-auth 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -17
- package/fesm2022/acontplus-ng-auth.mjs +389 -291
- package/fesm2022/acontplus-ng-auth.mjs.map +1 -1
- package/index.d.ts +129 -106
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -110,22 +110,7 @@ export class MyComponent {
|
|
|
110
110
|
|
|
111
111
|
## Usage
|
|
112
112
|
|
|
113
|
-
### Authentication
|
|
114
|
-
|
|
115
|
-
```typescript
|
|
116
|
-
import { AuthTokenService } from '@acontplus/ng-auth';
|
|
117
|
-
|
|
118
|
-
@Component({...})
|
|
119
|
-
export class MyComponent {
|
|
120
|
-
constructor(private authService: AuthTokenService) {}
|
|
121
|
-
|
|
122
|
-
isUserAuthenticated(): boolean {
|
|
123
|
-
return this.authService.isAuthenticated();
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
### Using Authentication Use Cases
|
|
113
|
+
### Authentication Use Cases
|
|
129
114
|
|
|
130
115
|
```typescript
|
|
131
116
|
import { LoginUseCase, LogoutUseCase } from '@acontplus/ng-auth';
|
|
@@ -172,7 +157,6 @@ styling.
|
|
|
172
157
|
|
|
173
158
|
### Core Services
|
|
174
159
|
|
|
175
|
-
- **AuthTokenService**: JWT token management and authentication state
|
|
176
160
|
- **UrlRedirectService**: URL storage and redirection management
|
|
177
161
|
- **CsrfService**: CSRF token management for secure API requests
|
|
178
162
|
- **TokenRepository**: Secure token storage and retrieval
|