-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Labels
AuthRelated to Auth components/categoryRelated to Auth components/categoryReact NativeReact Native related issueReact Native related issuequestionGeneral questionGeneral question
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
Amplify CLI
Environment information
Details
# Put output below this line
System:
OS: macOS 15.3.2
CPU: (8) arm64 Apple M1 Pro
Memory: 150.92 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.10.0 - /usr/local/bin/node
npm: 10.2.3 - /usr/local/bin/npm
Watchman: 2025.03.03.00 - /opt/homebrew/bin/watchman
Browsers:
Brave Browser: 136.1.78.94
Chrome: 136.0.7103.114
Safari: 18.3.1
npmPackages:
@aws-amplify/react-native: ^1.1.10 => 1.1.10
@aws-amplify/rtn-push-notification: ^1.1.1 => 1.2.35
@babel/core: ^7.25.2 => 7.27.3
@babel/preset-env: ^7.25.3 => 7.27.2
@babel/runtime: ^7.25.0 => 7.27.3
@expo/react-native-action-sheet: ^4.0.1 => 4.1.1
@expo/vector-icons: ^14.0.0 => 14.1.0
@google-cloud/recaptcha-enterprise-react-native: 18.7.0-beta01 => 18.7.0-beta01
@react-native-async-storage/async-storage: 1.23.1 => 1.23.1
@react-native-community/cli: 15.0.1 => 15.0.1
@react-native-community/cli-platform-android: 15.0.1 => 15.0.1
@react-native-community/cli-platform-ios: 15.0.1 => 15.0.1
@react-native-community/netinfo: 11.4.1 => 11.4.1
@react-native-masked-view/masked-view: 0.3.2 => 0.3.2
@react-native/babel-preset: 0.77.1 => 0.77.1 (0.76.7, 0.76.9)
@react-native/eslint-config: 0.77.1 => 0.77.1
@react-native/metro-config: 0.77.1 => 0.77.1
@react-native/typescript-config: 0.77.1 => 0.77.1
@react-navigation/bottom-tabs: ^7.3.3 => 7.3.13
@react-navigation/material-top-tabs: ^7.2.3 => 7.2.13
@react-navigation/native: ^7.0.19 => 7.1.9
@react-navigation/native-stack: ^7.3.3 => 7.3.13
@react-navigation/stack: ^7.2.3 => 7.3.2
@reduxjs/toolkit: ^1.9.5 => 1.9.7
@reduxjs/toolkit-query: 1.0.0
@reduxjs/toolkit-query-react: 1.0.0
@rnmapbox/maps: ^10.1.38 => 10.1.39
@tsconfig/react-native: ^3.0.0 => 3.0.5
@turf/helpers: ^7.2.0 => 7.2.0 (6.5.0)
@types/jest: ^29.5.13 => 29.5.14
@types/lodash: ^4.17.16 => 4.17.17
@types/qrcode: ^1.5.5 => 1.5.5
@types/react: ^18.2.6 => 18.3.23
@types/react-test-renderer: ^18.0.0 => 18.3.1
@types/uuid: ^10.0.0 => 10.0.0 (9.0.8)
ContextAPIMixpanel: 0.0.1
MixpanelDemo: 0.0.1
SimpleMixpanel: 0.0.1
aws-amplify: ^6.15.0 => 6.15.0
aws-amplify/adapter-core: undefined ()
aws-amplify/adapter-core/internals: 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/internals: 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.9.0 => 1.9.0
babel-jest: ^29.6.3 => 29.7.0
eslint: ^8.19.0 => 8.57.1
expo: ^52.0.0 => 52.0.46
expo-camera: ~16.0.18 => 16.0.18
expo-clipboard: ~7.0.1 => 7.0.1
expo-constants: ~17.0.8 => 17.0.8
expo-haptics: ~14.0.1 => 14.0.1
expo-image: ~2.0.6 => 2.0.7
expo-image-manipulator: ~13.0.6 => 13.0.6
expo-location: ~18.0.8 => 18.0.10
expo-media-library: ~17.0.6 => 17.0.6
expo-notifications: ^0.29.14 => 0.29.14
expo-splash-screen: ~0.29.22 => 0.29.24
formik: ^2.4.2 => 2.4.6
geojson: ^0.5.0 => 0.5.0
jest: ^29.6.3 => 29.7.0
libphonenumber-js: ^1.11.4 => 1.12.8
libphonenumber-js/build: undefined ()
libphonenumber-js/core: undefined ()
libphonenumber-js/max: undefined ()
libphonenumber-js/max/metadata: undefined ()
libphonenumber-js/min: undefined ()
libphonenumber-js/min/metadata: undefined ()
libphonenumber-js/mobile: undefined ()
libphonenumber-js/mobile/examples: undefined ()
libphonenumber-js/mobile/metadata: undefined ()
lottie-react-native: 7.1.0 => 7.1.0
metro-react-native-babel-preset: ^0.76.9 => 0.76.9
mixpanel-react-native: ^2.3.1 => 2.4.1
moment: ^2.29.4 => 2.30.1
prettier: 2.8.8 => 2.8.8
react: 18.3.1 => 18.3.1 (17.0.2)
react-native: 0.76.7 => 0.76.7
react-native-compressor: ^1.11.0 => 1.11.0
react-native-draggable-flatlist: ^4.0.1 => 4.0.3
react-native-gesture-handler: ~2.20.2 => 2.20.2
react-native-get-random-values: ~1.11.0 => 1.11.0
react-native-image-crop-picker: ^0.40.0 => 0.40.3
react-native-linear-gradient: ^2.7.3 => 2.8.3
react-native-maps: 1.18.0 => 1.18.0
react-native-pager-view: ^6.7.0 => 6.8.1
react-native-phone-number-input: ^2.1.0 => 2.1.0
react-native-qrcode-styled: ^0.3.3 => 0.3.3
react-native-reanimated: ~3.16.1 => 3.16.7
react-native-safe-area-context: 4.12.0 => 4.12.0
react-native-screens: ~4.4.0 => 4.4.0
react-native-skeleton-placeholder: ^5.2.4 => 5.2.4
react-native-svg: 15.8.0 => 15.8.0
react-native-tab-view: ^3.5.2 => 3.5.2 (4.1.0)
react-native-url-polyfill: ^1.3.0 => 1.3.0 (2.0.0)
react-redux: ^8.0.7 => 8.1.3
react-test-renderer: 18.3.1 => 18.3.1
typescript: 5.0.4 => 5.0.4
uuid: ^10.0.0 => 10.0.0 (9.0.1, 8.3.2, 7.0.3)
yup: ^1.2.0 => 1.6.1
npmGlobalPackages:
corepack: 0.22.0
ios-deploy: 1.12.2
npm: 10.2.3
typescript: 5.5.3
Describe the bug
Calling confirmSignIn on Android returns regardless of the size of the challengeResponse put in:
Value at 'session' failed to satisfy constraint: Member must have length less than or equal to 8192
This is not an issue on iOS, only Android. Previously when I was still using Auth.sendCustomChallengeAnswer', I could log the User object I passed in and the session` field for the User object was indeed larger than 8192 in length. This was not the case with iOS.
Expected behavior
Should call confirmSignIn successfully.
Reproduction steps
On an Android device.
- Call signIn
- Call confirmSignIn
Code Snippet
Log output
Details
// Put your logs below this line
[InvalidParameterException: 1 validation error detected: Value at 'session' failed to satisfy constraint: Member must have length less than or equal to 8192]
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
Metadata
Metadata
Assignees
Labels
AuthRelated to Auth components/categoryRelated to Auth components/categoryReact NativeReact Native related issueReact Native related issuequestionGeneral questionGeneral question