Open
Description
Before opening, please confirm:
- I have searched for duplicate or closed issues and discussions.
- I have read the guide for submitting bug reports.
- I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
JavaScript Framework
React Native
Amplify APIs
Authentication
Amplify Version
v6
Amplify Categories
auth
Backend
None
Environment information
System:
OS: macOS 14.7.4
CPU: (8) arm64 Apple M1 Pro
Memory: 69.66 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.18.2 - ~/.nvm/versions/node/v18.18.2/bin/node
Yarn: 1.22.1 - /usr/local/bin/yarn
npm: 9.8.1 - ~/.nvm/versions/node/v18.18.2/bin/npm
Browsers:
Chrome: 135.0.7049.115
Safari: 18.3
Safari Technology Preview: 18.2
npmPackages:
@aws-amplify/pubsub: ^6.1.50 => 6.1.50
@aws-amplify/react-native: ^1.1.5 => 1.1.5
@babel/core: ^7.20.0 => 7.24.7 (7.25.2)
@babel/plugin-transform-flow-strip-types: ^7.25.7 => 7.25.7 (7.24.7)
@babel/preset-env: ^7.20.0 => 7.24.7
@babel/runtime: ^7.20.0 => 7.24.7 (7.25.7, 7.25.6)
@georstat/react-native-image-cache: ^3.1.0 => 3.1.0
@gorhom/bottom-sheet: ^5.0.6 => 5.0.6
@hookform/resolvers: ^3.9.0 => 3.9.0
@hookform/resolvers/ajv: 1.0.0
@hookform/resolvers/arktype: 2.0.0
@hookform/resolvers/class-validator: 1.0.0
@hookform/resolvers/computed-types: 1.0.0
@hookform/resolvers/effect-ts: 1.0.0
@hookform/resolvers/fluentvalidation-ts: 1.0.0
@hookform/resolvers/io-ts: 1.0.0
@hookform/resolvers/joi: 1.0.0
@hookform/resolvers/nope: 1.0.0
@hookform/resolvers/superstruct: 1.0.0
@hookform/resolvers/typanion: 1.0.0
@hookform/resolvers/typebox: 1.0.0
@hookform/resolvers/typeschema: 1.0.0
@hookform/resolvers/valibot: 1.0.0
@hookform/resolvers/vest: 1.0.0
@hookform/resolvers/vine: 1.0.0
@hookform/resolvers/yup: 1.0.0
@hookform/resolvers/zod: 1.0.0
@quidone/react-native-wheel-picker: ^1.3.2 => 1.3.2
@react-native-async-storage/async-storage: ^2.0.0 => 2.0.0 (1.24.0)
@react-native-community/geolocation: ^3.4.0 => 3.4.0
@react-native-community/netinfo: ^11.4.1 => 11.4.1
@react-native-community/slider: ^4.5.4 => 4.5.4
@react-native-firebase/app: ^21.13.0 => 21.13.0
@react-native-firebase/messaging: ^21.13.0 => 21.13.0
@react-native-masked-view/masked-view: ^0.3.1 => 0.3.1
@react-native/babel-preset: 0.74.84 => 0.74.84
@react-native/eslint-config: 0.74.84 => 0.74.84
@react-native/metro-config: 0.74.84 => 0.74.84
@react-native/typescript-config: 0.74.84 => 0.74.84
@react-navigation/bottom-tabs: ^6.6.1 => 6.6.1
@react-navigation/native: ^6.1.18 => 6.1.18
@react-navigation/stack: ^6.4.1 => 6.4.1
@reduxjs/toolkit: ^2.2.7 => 2.2.7
@reduxjs/toolkit-query: 1.0.0
@reduxjs/toolkit-query-react: 1.0.0
@reduxjs/toolkit-react: 1.0.0
@sentry/react-native: ^5.33.2 => 5.33.2
@types/react: ^18.2.6 => 18.3.3
@types/react-test-renderer: ^18.0.0 => 18.3.0
ContextAPIMixpanel: 0.0.1
HelloWorld: 0.0.1
MixpanelDemo: 0.0.1
SimpleMixpanel: 0.0.1
aws-amplify: ^6.5.4 => 6.5.4
aws-amplify/adapter-core: undefined ()
aws-amplify/analytics: undefined ()
aws-amplify/analytics/kinesis: undefined ()
aws-amplify/analytics/kinesis-firehose: undefined ()
aws-amplify/analytics/personalize: undefined ()
aws-amplify/analytics/pinpoint: undefined ()
aws-amplify/api: undefined ()
aws-amplify/api/server: undefined ()
aws-amplify/auth: undefined ()
aws-amplify/auth/cognito: undefined ()
aws-amplify/auth/cognito/server: undefined ()
aws-amplify/auth/enable-oauth-listener: undefined ()
aws-amplify/auth/server: undefined ()
aws-amplify/data: undefined ()
aws-amplify/data/server: undefined ()
aws-amplify/datastore: undefined ()
aws-amplify/in-app-messaging: undefined ()
aws-amplify/in-app-messaging/pinpoint: undefined ()
aws-amplify/push-notifications: undefined ()
aws-amplify/push-notifications/pinpoint: undefined ()
aws-amplify/storage: undefined ()
aws-amplify/storage/s3: undefined ()
aws-amplify/storage/s3/server: undefined ()
aws-amplify/storage/server: undefined ()
aws-amplify/utils: undefined ()
axios: ^1.7.7 => 1.7.7
babel-jest: ^29.6.3 => 29.7.0
babel-plugin-module-resolver: ^5.0.2 => 5.0.2
benchmark-uuid: undefined ()
dayjs: ^1.11.13 => 1.11.13 (1.11.11)
eslint: ^8.19.0 => 8.57.0
haversine-distance: ^1.2.3 => 1.2.3
i18next: ^23.14.0 => 23.14.0
jest: ^29.6.3 => 29.7.0
lodash: ^4.17.21 => 4.17.21 (4.17.4, 3.10.1)
lottie-react-native: ^7.2.2 => 7.2.2
mixpanel-react-native: ^3.0.8 => 3.0.8
mixpanelexpo: 1.0.0
prettier: 3.3.3 => 3.3.3
react: 18.2.0 => 18.2.0
react-hook-form: ^7.53.0 => 7.53.0
react-i18next: ^15.0.1 => 15.0.1
react-native: 0.74.2 => 0.74.2
react-native-background-fetch: ^4.2.7 => 4.2.7
react-native-ble-manager: ^11.5.5 => 11.5.5
react-native-circular-progress-indicator: ^4.4.2 => 4.4.2
react-native-config: ^1.5.3 => 1.5.3
react-native-confirmation-code-field: ^7.4.0 => 7.4.0
react-native-device-info: ^14.0.1 => 14.0.1
react-native-file-access: ^3.1.1 => 3.1.1
react-native-geolocation-service: ^5.3.1 => 5.3.1
react-native-gesture-handler: ^2.21.2 => 2.21.2
react-native-get-random-values: ^1.11.0 => 1.11.0
react-native-gradient-texts: ^0.1.0 => 0.1.0
react-native-image-picker: ^8.2.0 => 8.2.0
react-native-linear-gradient: ^2.8.3 => 2.8.3
react-native-localize: ^3.2.1 => 3.2.1
react-native-otp-verify: ^1.1.8 => 1.1.8
react-native-pager-view: ^6.4.1 => 6.4.1
react-native-permissions: ^4.1.5 => 4.1.5
react-native-phone-number-input: ^2.1.0 => 2.1.0
react-native-raw-bottom-sheet: ^3.0.0 => 3.0.0
react-native-reanimated: ^3.16.7 => 3.16.7
react-native-responsive-fontsize: ^0.5.1 => 0.5.1
react-native-safe-area-context: ^4.10.9 => 4.10.9
react-native-screens: ^3.34.0 => 3.34.0
react-native-shadow-2: ^7.1.0 => 7.1.0
react-native-skeleton-placeholder: ^5.2.4 => 5.2.4
react-native-splash-screen: ^3.3.0 => 3.3.0
react-native-svg: ^15.8.0 => 15.8.0 (13.14.1)
react-native-svg-transformer: ^1.5.0 => 1.5.0
react-native-swiper-flatlist: ^3.2.5 => 3.2.5
react-native-tab-view: ^3.5.2 => 3.5.2
react-native-ui-lib: ^7.32.0 => 7.32.0
react-native-version-check: ^3.4.7 => 3.4.7
react-native-walkthrough-tooltip: ^1.6.0 => 1.6.0
react-native-webview: ^13.12.5 => 13.12.5
react-native-wifi-reborn: ^4.13.0 => 4.13.0
react-redux: ^9.1.2 => 9.1.2
react-test-renderer: 18.2.0 => 18.2.0
typescript: 5.0.4 => 5.0.4
uilib-native: 4.3.2
uuid: ^10.0.0 => 10.0.0 (9.0.1, 3.1.0, 2.0.3, 3.3.2)
yup: ^1.4.0 => 1.4.0
npmGlobalPackages:
@ionic/cli: 6.20.1
copyfiles: 2.4.1
corepack: 0.19.0
cpy-cli: 5.0.0
eas-cli: 12.6.2
npm: 9.8.1
pm2: 5.4.2
tree-sitter-cli: 0.23.0
Describe the bug
i use the following code to do signin:
const response = await signIn({
username: phone_number,
options: {
authFlowType: 'CUSTOM_WITHOUT_SRP',
clientMetadata: { locale: i18n.language },
},
});
but when i check in the event object under the following pre signin lambda the clientMetadata is not appear (according to the docs it should appear)
the lambda i checked:
Create auth challenge Lambda trigger
Custom SMS Sender Lambda trigger
Define auth challenge Lambda trigger
Expected behavior
the clientMetadata would appeared under event object inside the lambda
Reproduction steps
as describe above
Code Snippet
const response = await signIn({
username: phone_number,
options: {
authFlowType: 'CUSTOM_WITHOUT_SRP',
clientMetadata: { locale: i18n.language },
},
});
Log output
// Put your logs below this line
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response