@bmc-soft/keycloak-auth 2.0.2 → 2.0.4
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/dist/_lib/index.d.ts +1 -0
- package/dist/_lib/index.d.ts.map +1 -1
- package/dist/_lib/types/authStage.d.ts +1 -0
- package/dist/_lib/types/authStage.d.ts.map +1 -1
- package/dist/_lib/types/authStage.js +1 -0
- package/dist/_lib/types/authStage.js.map +1 -1
- package/dist/_lib/types/confirmAuthPhase.d.ts +1 -0
- package/dist/_lib/types/confirmAuthPhase.d.ts.map +1 -1
- package/dist/_lib/types/confirmAuthPhase.js +1 -0
- package/dist/_lib/types/confirmAuthPhase.js.map +1 -1
- package/dist/_lib/types/index.d.ts +1 -0
- package/dist/_lib/types/index.d.ts.map +1 -1
- package/dist/_lib/types/successFeedback.d.ts +6 -0
- package/dist/_lib/types/successFeedback.d.ts.map +1 -0
- package/dist/_lib/types/successFeedback.js +2 -0
- package/dist/_lib/types/successFeedback.js.map +1 -0
- package/dist/axios/adapters/KeycloakTokenProvider.js +1 -1
- package/dist/axios/adapters/KeycloakTokenProvider.js.map +1 -1
- package/dist/context/KeycloakConfigContext.d.ts.map +1 -1
- package/dist/context/KeycloakConfigContext.js +15 -12
- package/dist/context/KeycloakConfigContext.js.map +1 -1
- package/dist/context/KeycloakInstanceContext.d.ts.map +1 -1
- package/dist/context/KeycloakInstanceContext.js +30 -6
- package/dist/context/KeycloakInstanceContext.js.map +1 -1
- package/dist/context/TokenContext.d.ts.map +1 -1
- package/dist/context/TokenContext.js +15 -11
- package/dist/context/TokenContext.js.map +1 -1
- package/dist/core/adapter.d.ts.map +1 -1
- package/dist/core/adapter.js +24 -15
- package/dist/core/adapter.js.map +1 -1
- package/dist/core/sessionTermination.d.ts +2 -0
- package/dist/core/sessionTermination.d.ts.map +1 -0
- package/dist/core/sessionTermination.js +38 -0
- package/dist/core/sessionTermination.js.map +1 -0
- package/dist/hooks/useKeycloakAuthScreen.d.ts.map +1 -1
- package/dist/hooks/useKeycloakAuthScreen.js +2 -1
- package/dist/hooks/useKeycloakAuthScreen.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/screens/AuthPage/AuthPage.d.ts +2 -1
- package/dist/screens/AuthPage/AuthPage.d.ts.map +1 -1
- package/dist/screens/AuthPage/AuthPage.js +29 -9
- package/dist/screens/AuthPage/AuthPage.js.map +1 -1
- package/dist/screens/ConfirmAuthPage/ConfirmAuthPage.d.ts +3 -0
- package/dist/screens/ConfirmAuthPage/ConfirmAuthPage.d.ts.map +1 -1
- package/dist/screens/ConfirmAuthPage/ConfirmAuthPage.js +47 -7
- package/dist/screens/ConfirmAuthPage/ConfirmAuthPage.js.map +1 -1
- package/dist/storage/credentialStorage.d.ts +2 -0
- package/dist/storage/credentialStorage.d.ts.map +1 -1
- package/dist/storage/credentialStorage.js +55 -0
- package/dist/storage/credentialStorage.js.map +1 -1
- package/dist/storage/index.d.ts +1 -0
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/index.js +1 -0
- package/dist/storage/index.js.map +1 -1
- package/dist/storage/installStorage.d.ts +3 -0
- package/dist/storage/installStorage.d.ts.map +1 -0
- package/dist/storage/installStorage.js +91 -0
- package/dist/storage/installStorage.js.map +1 -0
- package/dist/storage/tokenStorage.d.ts.map +1 -1
- package/dist/storage/tokenStorage.js.map +1 -1
- package/dist/ui/NumberPad/NumberPad.d.ts +1 -0
- package/dist/ui/NumberPad/NumberPad.d.ts.map +1 -1
- package/dist/ui/NumberPad/NumberPad.js +12 -6
- package/dist/ui/NumberPad/NumberPad.js.map +1 -1
- package/dist/ui/PINConfirm/PINConfirm.d.ts +1 -1
- package/dist/ui/PINConfirm/PINConfirm.d.ts.map +1 -1
- package/dist/ui/PINConfirm/PINConfirm.js +52 -18
- package/dist/ui/PINConfirm/PINConfirm.js.map +1 -1
- package/dist/ui/PINIndicator/PINIndicator.d.ts +1 -0
- package/dist/ui/PINIndicator/PINIndicator.d.ts.map +1 -1
- package/dist/ui/PINIndicator/PINIndicator.js +52 -13
- package/dist/ui/PINIndicator/PINIndicator.js.map +1 -1
- package/dist/ui/PINSetup/PINSetup.d.ts.map +1 -1
- package/dist/ui/PINSetup/PINSetup.js +26 -9
- package/dist/ui/PINSetup/PINSetup.js.map +1 -1
- package/dist/ui/PINSetup/stages/BiometryStage.d.ts.map +1 -1
- package/dist/ui/PINSetup/stages/BiometryStage.js +1 -1
- package/dist/ui/PINSetup/stages/BiometryStage.js.map +1 -1
- package/dist/ui/SuccessAuthAnimation/SuccessAuthAnimation.d.ts +11 -0
- package/dist/ui/SuccessAuthAnimation/SuccessAuthAnimation.d.ts.map +1 -0
- package/dist/ui/SuccessAuthAnimation/SuccessAuthAnimation.js +86 -0
- package/dist/ui/SuccessAuthAnimation/SuccessAuthAnimation.js.map +1 -0
- package/dist/ui/SuccessAuthAnimation/index.d.ts +2 -0
- package/dist/ui/SuccessAuthAnimation/index.d.ts.map +1 -0
- package/dist/ui/SuccessAuthAnimation/index.js +2 -0
- package/dist/ui/SuccessAuthAnimation/index.js.map +1 -0
- package/dist/ui/WebViewLogin/WebViewLogin.d.ts.map +1 -1
- package/dist/ui/WebViewLogin/WebViewLogin.js +117 -10
- package/dist/ui/WebViewLogin/WebViewLogin.js.map +1 -1
- package/dist/ui/WebViewLogout/WebViewLogout.js +4 -4
- package/dist/ui/WebViewLogout/WebViewLogout.js.map +1 -1
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +1 -0
- package/dist/ui/index.js.map +1 -1
- package/dist/widgets/ReauthBottomSheet/ReauthBottomSheet.d.ts +4 -0
- package/dist/widgets/ReauthBottomSheet/ReauthBottomSheet.d.ts.map +1 -1
- package/dist/widgets/ReauthBottomSheet/ReauthBottomSheet.js +32 -4
- package/dist/widgets/ReauthBottomSheet/ReauthBottomSheet.js.map +1 -1
- package/package.json +7 -4
|
@@ -1,22 +1,40 @@
|
|
|
1
1
|
import { BottomSheetBackdrop, BottomSheetModal } from '@gorhom/bottom-sheet';
|
|
2
2
|
import React, { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
3
|
-
import { BackHandler, StyleSheet, View } from 'react-native';
|
|
3
|
+
import { BackHandler, InteractionManager, Platform, StyleSheet, View } from 'react-native';
|
|
4
4
|
import { useKeycloakTheme, useReauth } from '../../context';
|
|
5
5
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
6
6
|
import { ConfirmAuthPage } from '../../screens';
|
|
7
|
-
export const ReauthBottomSheet = React.memo(({ onSuccess, onDismiss, onError, pinLength = 4, allowBiometry = true, autoShowBiometry = true, title = 'Введите PIN', description
|
|
7
|
+
export const ReauthBottomSheet = React.memo(({ onSuccess, onDismiss, onError, onSessionExpired, onLogout, pinLength = 4, allowBiometry = true, autoShowBiometry = true, title = 'Введите PIN', description, mode, successFeedback, }) => {
|
|
8
8
|
const { colors: { background }, } = useKeycloakTheme();
|
|
9
9
|
const { top } = useSafeAreaInsets();
|
|
10
10
|
const { hideReauth, isReauthRequired, reauthReason } = useReauth();
|
|
11
11
|
const bottomSheetRef = useRef(null);
|
|
12
|
+
const presentDelayRef = useRef(null);
|
|
12
13
|
const snapPoints = useMemo(() => ['99%'], []);
|
|
13
14
|
React.useEffect(() => {
|
|
15
|
+
let interactionTask;
|
|
16
|
+
if (presentDelayRef.current) {
|
|
17
|
+
clearTimeout(presentDelayRef.current);
|
|
18
|
+
presentDelayRef.current = null;
|
|
19
|
+
}
|
|
14
20
|
if (isReauthRequired) {
|
|
15
|
-
|
|
21
|
+
interactionTask = InteractionManager.runAfterInteractions(() => {
|
|
22
|
+
presentDelayRef.current = setTimeout(() => {
|
|
23
|
+
presentDelayRef.current = null;
|
|
24
|
+
bottomSheetRef.current?.present();
|
|
25
|
+
}, 120);
|
|
26
|
+
});
|
|
16
27
|
}
|
|
17
28
|
else {
|
|
18
29
|
bottomSheetRef.current?.close();
|
|
19
30
|
}
|
|
31
|
+
return () => {
|
|
32
|
+
if (presentDelayRef.current) {
|
|
33
|
+
clearTimeout(presentDelayRef.current);
|
|
34
|
+
presentDelayRef.current = null;
|
|
35
|
+
}
|
|
36
|
+
interactionTask?.cancel?.();
|
|
37
|
+
};
|
|
20
38
|
}, [isReauthRequired]);
|
|
21
39
|
useEffect(() => {
|
|
22
40
|
if (!isReauthRequired)
|
|
@@ -33,14 +51,24 @@ export const ReauthBottomSheet = React.memo(({ onSuccess, onDismiss, onError, pi
|
|
|
33
51
|
bottomSheetRef.current?.close();
|
|
34
52
|
onDismiss?.();
|
|
35
53
|
}, [hideReauth, onDismiss]);
|
|
54
|
+
const handleSessionExpired = useCallback((error) => {
|
|
55
|
+
bottomSheetRef.current?.close();
|
|
56
|
+
onSessionExpired?.(error);
|
|
57
|
+
}, [onSessionExpired]);
|
|
58
|
+
const handleLogout = useCallback(() => {
|
|
59
|
+
hideReauth();
|
|
60
|
+
bottomSheetRef.current?.close();
|
|
61
|
+
onLogout?.();
|
|
62
|
+
}, [hideReauth, onLogout]);
|
|
36
63
|
const renderBackdrop = useCallback((props) => (<BottomSheetBackdrop pressBehavior={'none'} opacity={0.8} {...props} appearsOnIndex={0} disappearsOnIndex={-1}/>), []);
|
|
37
64
|
const backgroundStyle = useMemo(() => ({
|
|
38
65
|
backgroundColor: background,
|
|
39
66
|
}), [background]);
|
|
40
67
|
const confirmMode = mode ?? (reauthReason === 'background' ? 'unlock' : 'reauth');
|
|
68
|
+
const shouldAutoShowBiometry = !(Platform.OS === 'android' && reauthReason === 'background') && autoShowBiometry;
|
|
41
69
|
return (<BottomSheetModal ref={bottomSheetRef} snapPoints={snapPoints} handleComponent={null} topInset={top + 4} enableOverDrag={false} enableDynamicSizing={false} enablePanDownToClose={false} onDismiss={handleDismiss} backdropComponent={renderBackdrop} backgroundStyle={backgroundStyle}>
|
|
42
70
|
<View style={styles.container}>
|
|
43
|
-
<ConfirmAuthPage onSuccess={handleSuccess} onLogout={
|
|
71
|
+
<ConfirmAuthPage onSuccess={handleSuccess} onLogout={handleLogout} pinLength={pinLength} allowBiometry={allowBiometry} autoShowBiometry={shouldAutoShowBiometry} onError={onError} onSessionExpired={onSessionExpired ? handleSessionExpired : undefined} mode={confirmMode} title={title} description={description} successFeedback={successFeedback} layout="sheet"/>
|
|
44
72
|
</View>
|
|
45
73
|
</BottomSheetModal>);
|
|
46
74
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReauthBottomSheet.js","sourceRoot":"","sources":["../../../src/widgets/ReauthBottomSheet/ReauthBottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"ReauthBottomSheet.js","sourceRoot":"","sources":["../../../src/widgets/ReauthBottomSheet/ReauthBottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAE3F,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,eAAe,EAAwB,MAAM,eAAe,CAAC;AAuGtE,MAAM,CAAC,MAAM,iB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
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "Production-ready Keycloak authentication package for React Native with optimized performance and security",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"clean": "rm -rf dist && rm -f tsconfig.tsbuildinfo",
|
|
68
68
|
"prepack": "npm run build",
|
|
69
69
|
"prepublishOnly": "npm run clean && npm run build",
|
|
70
|
-
"test": "node tests/sessionPolicy.test.cjs && node tests/publicApiExports.test.cjs && node tests/authPatchRegression.test.cjs",
|
|
70
|
+
"test": "node tests/sessionPolicy.test.cjs && node tests/publicApiExports.test.cjs && node tests/authPatchRegression.test.cjs && node tests/successAuthAnimation.test.cjs",
|
|
71
71
|
"typecheck": "tsc --noEmit"
|
|
72
72
|
},
|
|
73
73
|
"keywords": [
|
|
@@ -78,12 +78,14 @@
|
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"@gorhom/bottom-sheet": ">=5.0.0",
|
|
80
80
|
"axios": ">=1.0.0",
|
|
81
|
+
"lottie-react-native": ">=6.0.0",
|
|
81
82
|
"react": ">=18.0.0",
|
|
82
83
|
"react-native": ">=0.72.0",
|
|
84
|
+
"react-native-reanimated": ">=2.8.0 <5",
|
|
83
85
|
"react-native-safe-area-context": ">=4.0.0",
|
|
86
|
+
"react-native-svg": ">=14.0.0",
|
|
84
87
|
"react-native-webview": ">=13.0.0",
|
|
85
|
-
"
|
|
86
|
-
"react-native-svg": ">=14.0.0"
|
|
88
|
+
"@react-native-async-storage/async-storage": ">=1.17.0"
|
|
87
89
|
},
|
|
88
90
|
"peerDependenciesMeta": {
|
|
89
91
|
"axios": {
|
|
@@ -105,6 +107,7 @@
|
|
|
105
107
|
"lottie-react-native": ">=6.0.0",
|
|
106
108
|
"react": ">=18.0.0",
|
|
107
109
|
"react-native": ">=0.72.0",
|
|
110
|
+
"react-native-reanimated": "^3.19.5",
|
|
108
111
|
"react-native-safe-area-context": ">=4.0.0",
|
|
109
112
|
"react-native-svg": ">=14.0.0",
|
|
110
113
|
"react-native-webview": ">=13.0.0",
|