@sowell/quasar-app-extension-auth 0.3.23 → 0.3.24
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/package.json +1 -1
- package/src/composables/auth.ts +19 -19
- package/src/injects/states.ts +7 -7
package/package.json
CHANGED
package/src/composables/auth.ts
CHANGED
|
@@ -23,10 +23,10 @@ export function useAuth() {
|
|
|
23
23
|
const authState = useAuthState();
|
|
24
24
|
const device = inject("Device")
|
|
25
25
|
let deviceInfos = {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
manufacturer: "",
|
|
27
|
+
model: "",
|
|
28
|
+
platform: "",
|
|
29
|
+
version: ""
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
const { t } = useI18n();
|
|
@@ -83,10 +83,10 @@ export function useAuth() {
|
|
|
83
83
|
if (device) {
|
|
84
84
|
const info = await device.getInfo();
|
|
85
85
|
deviceInfos = {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
manufacturer: info.manufacturer,
|
|
87
|
+
model: info.model,
|
|
88
|
+
platform: info.platform,
|
|
89
|
+
version: info.osVersion
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
}
|
|
@@ -99,17 +99,17 @@ export function useAuth() {
|
|
|
99
99
|
password: password.value,
|
|
100
100
|
},
|
|
101
101
|
};
|
|
102
|
-
if (device) {
|
|
103
|
-
data
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}
|
|
102
|
+
if (device && Platform.is.capacitor) {
|
|
103
|
+
(data["device-clean"] = {
|
|
104
|
+
manufacturer: deviceInfos.manufacturer,
|
|
105
|
+
model: deviceInfos.model,
|
|
106
|
+
platform: deviceInfos.platform,
|
|
107
|
+
version: deviceInfos.version
|
|
108
|
+
}),
|
|
109
|
+
(data["app-clean"] = {
|
|
110
|
+
versionNumber: APP_VERSION
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
113
|
const options: HeadersInterface = {
|
|
114
114
|
headers: {},
|
|
115
115
|
};
|
package/src/injects/states.ts
CHANGED
|
@@ -26,14 +26,14 @@ export interface SignInPayload {
|
|
|
26
26
|
email: string
|
|
27
27
|
password: string
|
|
28
28
|
}
|
|
29
|
-
device?: {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
"device-clean"?: {
|
|
30
|
+
manufacturer: string
|
|
31
|
+
model: string
|
|
32
|
+
platform: string,
|
|
33
|
+
version: string
|
|
34
34
|
}
|
|
35
|
-
app?: {
|
|
36
|
-
|
|
35
|
+
"app-clean"?: {
|
|
36
|
+
versionNumber: string
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|