@unvired/react-native-wrapper-sdk 0.0.25 → 0.0.27

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.
@@ -115,7 +115,7 @@ class AuthBuilder {
115
115
  return this;
116
116
  }
117
117
  execute() {
118
- // Get the singleton instance and call the appropriate authentication method
118
+ // Access the singleton instance via the static getter with type assertion
119
119
  const authService = unvired_ts_core_sdk_1.AuthenticationService.instance;
120
120
  switch (this.method) {
121
121
  case 'login':
@@ -15,7 +15,7 @@ export declare class AuthService {
15
15
  * Returns a builder for authenticateLocal method
16
16
  */
17
17
  authenticateLocal(): AuthBuilder;
18
- /**
18
+ /**x`
19
19
  * Logout method - Logs out the current user
20
20
  */
21
21
  logout(): Promise<any>;
@@ -28,7 +28,7 @@ class AuthService {
28
28
  authenticateLocal() {
29
29
  return new AuthBuilder_1.default('authenticateLocal');
30
30
  }
31
- /**
31
+ /**x`
32
32
  * Logout method - Logs out the current user
33
33
  */
34
34
  async logout() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unvired/react-native-wrapper-sdk",
3
- "version": "0.0.25",
3
+ "version": "0.0.27",
4
4
  "description": "Unvired SDK for React Native - Enterprise mobile platform SDK with authentication, sync, and offline database",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -160,16 +160,16 @@ export default class AuthBuilder implements PromiseLike<any> {
160
160
  }
161
161
 
162
162
  private execute(): Promise<any> {
163
- // Get the singleton instance and call the appropriate authentication method
163
+ // Access the singleton instance via the static getter with type assertion
164
164
  const authService = (AuthenticationService as any).instance;
165
165
 
166
166
  switch (this.method) {
167
167
  case 'login':
168
- return authService.login(this.loginParameters);
168
+ return authService.login(this.loginParameters as any);
169
169
  case 'authenticateAndActivate':
170
- return authService.authenticateAndActivate(this.loginParameters);
170
+ return authService.authenticateAndActivate(this.loginParameters as any);
171
171
  case 'authenticateLocal':
172
- return authService.authenticateLocal(this.loginParameters);
172
+ return authService.authenticateLocal(this.loginParameters as any);
173
173
  default:
174
174
  return Promise.reject(new Error(`Unknown method: ${this.method}`));
175
175
  }
@@ -27,7 +27,7 @@ export class AuthService {
27
27
  return new AuthBuilder('authenticateLocal');
28
28
  }
29
29
 
30
- /**
30
+ /**x`
31
31
  * Logout method - Logs out the current user
32
32
  */
33
33
  async logout(): Promise<any> {