@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
|
-
//
|
|
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':
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unvired/react-native-wrapper-sdk",
|
|
3
|
-
"version": "0.0.
|
|
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
|
-
//
|
|
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
|
}
|