@progalaxyelabs/ngx-stonescriptphp-client 1.23.2 → 1.23.3
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
|
@@ -570,10 +570,11 @@ declare class AuthService {
|
|
|
570
570
|
private plugin;
|
|
571
571
|
private tokens;
|
|
572
572
|
private signinStatus;
|
|
573
|
+
private environment;
|
|
573
574
|
private readonly USER_STORAGE_KEY;
|
|
574
575
|
private userSubject;
|
|
575
576
|
user$: Observable<User | null>;
|
|
576
|
-
constructor(plugin: AuthPlugin, tokens: TokenService, signinStatus: SigninStatusService);
|
|
577
|
+
constructor(plugin: AuthPlugin, tokens: TokenService, signinStatus: SigninStatusService, environment: MyEnvironmentModel);
|
|
577
578
|
private restoreUser;
|
|
578
579
|
private saveUser;
|
|
579
580
|
private updateUser;
|
|
@@ -595,6 +596,14 @@ declare class AuthService {
|
|
|
595
596
|
*/
|
|
596
597
|
refresh(): Promise<boolean>;
|
|
597
598
|
isAuthenticated(): boolean;
|
|
599
|
+
/**
|
|
600
|
+
* Update the authenticated user's display name.
|
|
601
|
+
* Calls PUT /api/account/profile with { display_name } and updates local user state on success.
|
|
602
|
+
*/
|
|
603
|
+
updateProfile(displayName: string): Promise<{
|
|
604
|
+
success: boolean;
|
|
605
|
+
message?: string;
|
|
606
|
+
}>;
|
|
598
607
|
getCurrentUser(): User | null;
|
|
599
608
|
sendOtp(identifier: string): Promise<OtpSendResponse>;
|
|
600
609
|
verifyOtp(identifier: string, code: string): Promise<OtpVerifyResponse>;
|