@noatgnu/cupcake-core 1.3.4 → 1.3.6

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/index.d.ts CHANGED
@@ -115,6 +115,16 @@ interface AuthConfig {
115
115
  registrationEnabled: boolean;
116
116
  orcidLoginEnabled: boolean;
117
117
  regularLoginEnabled: boolean;
118
+ jwtTokenLifetimes?: {
119
+ default: {
120
+ accessTokenMinutes: number;
121
+ refreshTokenDays: number;
122
+ };
123
+ rememberMe: {
124
+ accessTokenHours: number;
125
+ refreshTokenDays: number;
126
+ };
127
+ };
118
128
  }
119
129
  interface RegistrationStatus {
120
130
  registrationEnabled: boolean;
@@ -686,6 +696,7 @@ declare const TASK_STATUS_COLORS: Record<TaskStatus, string>;
686
696
 
687
697
  interface CupcakeCoreConfig {
688
698
  apiUrl: string;
699
+ websocketUrl?: string;
689
700
  }
690
701
  declare const CUPCAKE_CORE_CONFIG: InjectionToken<CupcakeCoreConfig>;
691
702
  interface AuthResponse {
@@ -715,9 +726,9 @@ declare class AuthService {
715
726
  authorizationUrl: string;
716
727
  state: string;
717
728
  }>;
718
- handleORCIDCallback(code: string, state: string): Observable<AuthResponse>;
719
- exchangeORCIDToken(accessToken: string, orcidId: string): Observable<AuthResponse>;
720
- login(username: string, password: string): Observable<AuthResponse>;
729
+ handleORCIDCallback(code: string, state: string, rememberMe?: boolean): Observable<AuthResponse>;
730
+ exchangeORCIDToken(accessToken: string, orcidId: string, rememberMe?: boolean): Observable<AuthResponse>;
731
+ login(username: string, password: string, rememberMe?: boolean): Observable<AuthResponse>;
721
732
  logout(): Observable<any>;
722
733
  checkAuthStatus(): Observable<AuthStatus>;
723
734
  fetchUserProfile(): Observable<User>;
@@ -1411,6 +1422,7 @@ declare class LoginComponent implements OnInit {
1411
1422
  shouldShowRegistration: _angular_core.Signal<boolean>;
1412
1423
  shouldShowRegularLogin: _angular_core.Signal<boolean>;
1413
1424
  registrationMessage: _angular_core.Signal<string>;
1425
+ rememberMeDuration: _angular_core.Signal<number>;
1414
1426
  /**
1415
1427
  * Navigate to registration page
1416
1428
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noatgnu/cupcake-core",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "description": "A reusable Angular library that provides user management, authentication, and site configuration functionality for cupcake applications.",
5
5
  "keywords": [
6
6
  "angular",