@opexa/portal-components 0.0.1016 → 0.0.1017
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.
|
@@ -106,6 +106,7 @@ export function MobileNumberSignIn() {
|
|
|
106
106
|
console.warn('Failed to updated biometric credentials');
|
|
107
107
|
globalStore.signIn.setOpen(!globalStore.signIn.open);
|
|
108
108
|
}
|
|
109
|
+
globalStore.disclaimer.setOpen(true);
|
|
109
110
|
}
|
|
110
111
|
else {
|
|
111
112
|
console.error('Failed to create token');
|
|
@@ -107,6 +107,7 @@ export function MobileNumberSignIn() {
|
|
|
107
107
|
console.warn('Failed to updated biometric credentials');
|
|
108
108
|
globalStore.signIn.setOpen(!globalStore.signIn.open);
|
|
109
109
|
}
|
|
110
|
+
globalStore.disclaimer.setOpen(true);
|
|
110
111
|
}
|
|
111
112
|
else {
|
|
112
113
|
console.error('Failed to create token');
|
|
@@ -109,6 +109,7 @@ export function NameAndPasswordSignIn() {
|
|
|
109
109
|
console.warn('Failed to updated biometric credentials');
|
|
110
110
|
globalStore.signIn.setOpen(!globalStore.signIn.open);
|
|
111
111
|
}
|
|
112
|
+
globalStore.disclaimer.setOpen(true);
|
|
112
113
|
}
|
|
113
114
|
else {
|
|
114
115
|
console.error('Failed to create token');
|
|
@@ -201,6 +202,7 @@ export function NameAndPasswordSignIn() {
|
|
|
201
202
|
console.warn('Failed to updated biometric credentials');
|
|
202
203
|
globalStore.signIn.setOpen(!globalStore.signIn.open);
|
|
203
204
|
}
|
|
205
|
+
globalStore.disclaimer.setOpen(true);
|
|
204
206
|
}
|
|
205
207
|
else {
|
|
206
208
|
console.error('Failed to create token');
|
|
@@ -17,6 +17,7 @@ export function SignInTrigger(props) {
|
|
|
17
17
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
18
18
|
signIn: ctx.signIn,
|
|
19
19
|
registerBiometrics: ctx.registerBiometrics,
|
|
20
|
+
disclaimer: ctx.disclaimer,
|
|
20
21
|
})));
|
|
21
22
|
return (_jsx(ark.button, { type: "button", "aria-label": "Sign in", "data-state": globalStore.signIn.open ? 'open' : 'closed', ...props, onClick: async (e) => {
|
|
22
23
|
if (hasSavedBiometry()) {
|
|
@@ -82,9 +83,12 @@ export function SignInTrigger(props) {
|
|
|
82
83
|
},
|
|
83
84
|
});
|
|
84
85
|
}
|
|
85
|
-
getQueryClient().invalidateQueries({
|
|
86
|
+
await getQueryClient().invalidateQueries({
|
|
86
87
|
queryKey: getSessionQueryKey(),
|
|
87
88
|
});
|
|
89
|
+
if (Capacitor.isNativePlatform()) {
|
|
90
|
+
globalStore.disclaimer.setOpen(true);
|
|
91
|
+
}
|
|
88
92
|
const r = await createSingleUseToken({
|
|
89
93
|
headers: {
|
|
90
94
|
Authorization: `Bearer ${session.token}`,
|