@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sowell/quasar-app-extension-auth",
3
- "version": "0.3.23",
3
+ "version": "0.3.24",
4
4
  "description": "A Quasar app extension to manage Authentication",
5
5
  "main": "src/index.js",
6
6
  "repository": "https://github.com/sowell-ai/quasar.extension.auth",
@@ -23,10 +23,10 @@ export function useAuth() {
23
23
  const authState = useAuthState();
24
24
  const device = inject("Device")
25
25
  let deviceInfos = {
26
- cleanManufacturer: "",
27
- cleanModel: "",
28
- cleanPlatform: "",
29
- cleanVersion: ""
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
- cleanManufacturer: info.manufacturer,
87
- cleanModel: info.model,
88
- cleanPlatform: info.platform,
89
- cleanVersion: info.osVersion
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.device = {
104
- cleanManufacturer: deviceInfos.cleanManufacturer,
105
- cleanModel: deviceInfos.cleanModel,
106
- cleanPlatform: deviceInfos.cleanPlatform,
107
- cleanVersion: deviceInfos.cleanVersion,
108
- },
109
- data.app = {
110
- cleanVersionNumber: APP_VERSION
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
  };
@@ -26,14 +26,14 @@ export interface SignInPayload {
26
26
  email: string
27
27
  password: string
28
28
  }
29
- device?: {
30
- cleanManufacturer: string
31
- cleanModel: string
32
- cleanPlatform: string,
33
- cleanVersion: string
29
+ "device-clean"?: {
30
+ manufacturer: string
31
+ model: string
32
+ platform: string,
33
+ version: string
34
34
  }
35
- app?: {
36
- cleanVersionNumber: string
35
+ "app-clean"?: {
36
+ versionNumber: string
37
37
  }
38
38
  }
39
39