@edsis/angular 22.0.70 → 22.0.71
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/fesm2022/edsis-angular-block-shell.mjs +0 -2
- package/fesm2022/edsis-angular-block-shell.mjs.map +1 -1
- package/fesm2022/edsis-angular-block-themes.mjs +4 -2
- package/fesm2022/edsis-angular-block-themes.mjs.map +1 -1
- package/fesm2022/edsis-angular-module-auth.mjs +9 -21
- package/fesm2022/edsis-angular-module-auth.mjs.map +1 -1
- package/package.json +5 -5
- package/types/edsis-angular-module-auth.d.ts +2 -9
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpInterceptorFn, HttpContextToken } from '@angular/common/http';
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
3
|
import { InjectionToken, EnvironmentProviders, OnInit } from '@angular/core';
|
|
4
|
-
import {
|
|
4
|
+
import { PersistentAuthUser } from '@edsis/sdk/auth';
|
|
5
5
|
import { CanActivateFn, Routes } from '@angular/router';
|
|
6
6
|
import * as _edsis_angular_module_auth from '@edsis/angular/module/auth';
|
|
7
7
|
import * as _angular_forms from '@angular/forms';
|
|
@@ -176,12 +176,6 @@ declare function resolveEdsisAuthConfig(config: EdsisAuthConfig): ResolvedEdsisA
|
|
|
176
176
|
|
|
177
177
|
declare function provideEdsisAuth(config: EdsisAuthConfig): EnvironmentProviders;
|
|
178
178
|
|
|
179
|
-
interface AuthCredentials extends PersistentAuthLoginRequest {
|
|
180
|
-
/** Send exactly one of `email` or `username`. */
|
|
181
|
-
email?: string;
|
|
182
|
-
/** Send exactly one of `email` or `username`. */
|
|
183
|
-
username?: string;
|
|
184
|
-
}
|
|
185
179
|
interface AuthUser extends PersistentAuthUser {
|
|
186
180
|
readonly role?: string;
|
|
187
181
|
}
|
|
@@ -212,7 +206,6 @@ declare class AuthService {
|
|
|
212
206
|
readonly user: _angular_core.Signal<AuthUser | null>;
|
|
213
207
|
readonly isAuthenticated: _angular_core.Signal<boolean>;
|
|
214
208
|
get apiUrl(): string;
|
|
215
|
-
login(credentials: AuthCredentials): Promise<AuthUser | null>;
|
|
216
209
|
/** Restores an existing cookie session. A missing/expired cookie is normal. */
|
|
217
210
|
initialize(): Promise<void>;
|
|
218
211
|
/** One shared refresh operation for initializer and concurrent 401 retries. */
|
|
@@ -383,4 +376,4 @@ declare class AuthVerifyPage {
|
|
|
383
376
|
}
|
|
384
377
|
|
|
385
378
|
export { AuthGoogleCallbackPage, AuthLoginPage, AuthLogoutPage, AuthService, AuthShellPage, AuthVerifyPage, DEFAULT_EDSIS_AUTH_MESSAGES, EDSIS_AUTH_CONFIG, EDSIS_AUTH_MESSAGES, EDSIS_SKIP_AUTH, GOOGLE_OAUTH_AUTHORIZE_URL, GOOGLE_OAUTH_CALLBACK_ROUTE_PATH, GOOGLE_OAUTH_STATE_STORAGE_KEY, authRoutes, authenticatedGuard, buildGoogleAuthorizeUrl, consumeGoogleOauthState, createGoogleOauthState, edsisAuthInterceptor, guestOnlyGuard, homeRedirectGuard, mergeEdsisAuthMessages, provideEdsisAuth, resolveEdsisAuthConfig, setAuthNotificationBadge, storeGoogleOauthState };
|
|
386
|
-
export type {
|
|
379
|
+
export type { AuthUser, EdsisAuthConfig, EdsisAuthGoogleOauthConfig, EdsisAuthHealthCheckConfig, EdsisAuthMessages, EdsisAuthMessagesOverride, EdsisAuthOauthConfig, GoogleAuthorizeUrlOptions, ResolvedEdsisAuthConfig, ResolvedEdsisAuthGoogleOauth, ResolvedEdsisAuthHealthCheck, ResolvedEdsisAuthOauth };
|