You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getting AuthUserPoolException: Auth UserPool not configured. when trying to log in. Amplify is configured in app.tsx early in the app, and i also printed out the configuration with Amplify.getConfig before calling signIn and the config is valid. The same configuration was used within an earlier version of RN, and it was working.
I'm using the latest version of aws-amplify, @aws-amplify/react-native and @aws-amplify/rtn-web-browser and i don't have installed packages like @aws-aplify/auth etc.
Expected behavior
Amplify methods should work with newer RN versions.
Reproduction steps
Cleaned All the node_modules (turborepo)
Did a cleanup from junk (android, ios)
Install deps (pnpm)
The app starts
After filling the credentials, it says AuthUserPoolException: Auth UserPool not configured.
Log output
// Put your logs below this line
AuthUserPoolException: Auth UserPool not configured.
at construct (native)
at apply (native)
at _construct (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.xxx.stage:28191:106)
at Wrapper (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.xxx.stage:28165:64)
at construct (native)
at _callSuper (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.xxx.stage:237604:170)
at AmplifyError (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.xxx.stage:237624:25)
at anonymous (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.xxx.stage:237822:33)
at assertTokenProviderConfig (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.xxx.stage:240899:65)
at ?anon_0_ (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.xxx.stage:248537:109)
at next (native)
at asyncGeneratorStep (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.xxx.stage:29436:19)
at _next (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.xxx.stage:29450:29)
at anonymous (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.xxx.stage:29455:14)
at tryCallTwo (address at InternalBytecode.js:1:1222)
at doResolve (address at InternalBytecode.js:1:2541)
at Promise (address at InternalBytecode.js:1:1318)
at anonymous (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.xxx.stage:29447:25)
at apply (native)
at getAuthKeys (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.xxx.stage:248542:36)
at ?anon_0_ (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.xxx.stage:248505:48)
at next (native)
at asyncGeneratorStep (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.xxx.stage:29436:19)
at _next (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.xxx.stage:29450:29)
at anonymous (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.xxx.stage:29455:14)
at tryCallTwo (address at InternalBytecode.js:1:1222)
at doResolve (address at InternalBytecode.js:1:2541)
at Promise (address at InternalBytecode.js:1:1318)
at anonymous (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.xxx.stage:29447:25)
at apply (native)
at getDeviceMetadata (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.xxx.stage:248516:42)
at getDeviceMetadata (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.xxx.stage:248846:54)
at ?anon_0_ (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.xxx.stage:245716:69)
at next (native)
at asyncGeneratorStep (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.xxx.stage:29436:19)
at _next (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.xxx.stage:29450:29)
at tryCallOne (address at InternalBytecode.js:1:1180)
at anonymous (address at InternalBytecode.js:1:1874)
Code snippet
// app.tsximport{Amplify}from'aws-amplify';import{AwsCognitoConfig}from'src/config/AwsCognitoConfig';Amplify.configure(AwsCognitoConfig[Config.BUILD_TYPE]);// signIn.tsxconsthandleSignIn=async()=>{Keyboard.dismiss();try{console.log(Amplify.getConfig(),'config before calling sing in');👆thisprintsoutthevalidconfigurationawaitsignIn({username: values.email,password: values.password});👆thisthrowstheerrorAuthUserPoolException}catch(e){console.log(e,'error');}
aws-exports.js
No response
Manual configuration
Auth: {Cognito: {loginWith: {oauth: {domain: '***.auth.<region>.amazoncognito.com',redirectSignIn: [`${appScheme}://communication`],redirectSignOut: [`${appScheme}://auth`],responseType: 'code',scopes: ['phone','email','openid','aws.cognito.signin.user.admin','profile',],providers: ['Apple', 'Facebook', 'Google'],},},userPoolId: 'XX-XXXX-X_X',userPoolClientId: 'XXX',},},``### Additional configuration_No response_### Mobile DeviceiOS Simulator 16 Pro### Mobile Operating System18.2### Mobile Browser_No response_### Mobile Browser Version_No response_### Additional information and screenshots_No response_
The text was updated successfully, but these errors were encountered:
Just got it fixed, if you guys are experiencing the same issue, after upgrading amplify packages, make sure you are always deleting lockfiles and node modules, in case of a monorepo (in my case turborepo), delete all the node modules and the root lockfile as well.
Also, make sure you don't have enabled neither of the options below in metro.config.js
unstable_enableSymlinks and unstable_enablePackageExports
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
Authentication
Amplify Version
v6
Amplify Categories
auth
Backend
None
Environment information
System:
OS: macOS 15.2
CPU: (11) arm64 Apple M3 Pro
Memory: 260.34 MB / 18.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.19.0 - ~/.nvm/versions/node/v18.19.0/bin/node
npm: 9.9.2 - ~/.nvm/versions/node/v18.19.0/bin/npm
pnpm: 9.9.0 - ~/.nvm/versions/node/v18.19.0/bin/pnpm
Watchman: 2024.12.02.00 - /opt/homebrew/bin/watchman
Browsers:
Chrome: 132.0.6834.162
Safari: 18.2
npmPackages:
@aws-amplify/react-native: 1.1.6 => 1.1.6
@aws-amplify/rtn-web-browser: 1.1.1 => 1.1.1
@babel/plugin-proposal-decorators: 7.24.1 => 7.24.1
@datadog/datadog-ci: 2.32.1 => 2.32.1
@datadog/mobile-react-native: 2.6.1 => 2.6.1
@datadog/mobile-react-native-code-push: 2.6.1 => 2.6.1
@jest/globals: 29.7.0 => 29.7.0
@react-native-async-storage/async-storage: 1.19.1 => 1.19.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.3.1 => 11.3.1
@react-native-firebase/analytics: 21.7.1 => 21.7.1
@react-native-firebase/app: 21.7.1 => 21.7.1
@react-native-firebase/crashlytics: 21.7.1 => 21.7.1
@react-native/babel-preset: 0.77.0 => 0.77.0
@react-native/codegen: 0.77.0 => 0.77.0
@react-native/gradle-plugin: 0.77.0 => 0.77.0
@react-native/metro-config: 0.77.0 => 0.77.0
@react-navigation/core: 7.3.1 => 7.3.1
@react-navigation/drawer: 7.1.1 => 7.1.1
@react-navigation/native: 7.0.14 => 7.0.14
@react-navigation/native-stack: 7.2.0 => 7.2.0
@rnx-kit/metro-resolver-symlinks: 0.1.35 => 0.1.35
@tanstack/react-query: 4.36.1 => 4.36.1
@testing-library/jest-dom: 6.4.2 => 6.4.2
@testing-library/jest-native: 5.4.3 => 5.4.3
@testing-library/react-native: 13.0.1 => 13.0.1
@trpc/client: 10.45.2 => 10.45.2
@trpc/react-query: 10.45.2 => 10.45.2
@trpc/server: 10.45.2 => 10.45.2
@types/imap-simple: 4.2.9 => 4.2.9
@types/jest: 29.5.12 => 29.5.12
@types/md5: 2.3.5 => 2.3.5
@types/node: 20.11.27 => 20.11.27
@types/node-forge: 1.3.11 => 1.3.11
@types/ramda: 0.29.11 => 0.29.11
@types/react: 18.2.65 => 18.2.65
@types/react-native-modalbox: 1.4.14 => 1.4.14
@types/urijs: 1.19.25 => 1.19.25
@types/uuid: 9.0.8 => 9.0.8
app-icon: 0.13.2 => 0.13.2
aws-amplify: 6.12.2 => 6.12.2
axios: 1.7.9 => 1.7.9
countries-list: 3.1.1 => 3.1.1
detox: 20.19.3 => 20.19.3
eslint: 8.57.0 => 8.57.0
formik: 2.4.5 => 2.4.5
i18next: 23.10.1 => 23.10.1
imap-simple: 5.1.0 => 5.1.0
intl: 1.2.5 => 1.2.5
intl-pluralrules: 2.0.1 => 2.0.1
jest: 29.7.0 => 29.7.0
jest-html-reporters: 3.1.7 => 3.1.7
jest-junit: 16.0.0 => 16.0.0
md5: 2.3.0 => 2.3.0
mobx: 6.12.0 => 6.12.0
mobx-flipper: 1.2.6 => 1.2.6
mobx-persist: 0.4.1 => 0.4.1
mobx-react: 9.1.0 => 9.1.0
moment-timezone: 0.5.45 => 0.5.45
msw: 2.0.11 => 2.0.11
node-forge: 1.3.1 => 1.3.1
ramda: 0.29.1 => 0.29.1
react: 18.3.1 => 18.3.1
react-i18next: 14.1.0 => 14.1.0
react-native: 0.77.0 => 0.77.0
react-native-ble-manager: 12.1.3 => 12.1.3
react-native-bootsplash: 6.3.2 => 6.3.2
react-native-calendars: 1.1304.1 => 1.1304.1
react-native-circular-progress: 1.4.1 => 1.4.1
react-native-code-push: 8.2.1 => 8.2.1
react-native-config: 1.5.3 => 1.5.3
react-native-device-info: 10.13.1 => 10.13.1
react-native-exit-app: 2.0.0 => 2.0.0
react-native-gesture-handler: 2.22.0 => 2.22.0
react-native-get-location: 5.0.0 => 5.0.0
react-native-get-random-values: 1.11.0 => 1.11.0
react-native-in-app-review: 4.3.3 => 4.3.3
react-native-inappbrowser-reborn: 3.7.0 => 3.7.0
react-native-modal: 13.0.1 => 13.0.1
react-native-modalbox: 2.0.2 => 2.0.2
react-native-onesignal: 5.2.8 => 5.2.8
react-native-orientation-locker: 1.6.0 => 1.6.0
react-native-parsed-text: 0.0.22 => 0.0.22
react-native-permissions: 3.10.1 => 3.10.1
react-native-reanimated: 3.16.7 => 3.16.7
react-native-safe-area-context: 5.2.0 => 5.2.0
react-native-screens: 4.5.0 => 4.5.0
react-native-svg: 15.11.1 => 15.11.1
react-native-svg-transformer: 1.5.0 => 1.5.0
react-native-swipe-gestures: 1.0.5 => 1.0.5
react-native-webview: 13.7.0 => 13.7.0
react-native-youtube-iframe: 2.3.0 => 2.3.0
ts-node: 10.9.2 => 10.9.2
typescript: 5.4.2 => 5.4.2
urijs: 1.19.11 => 1.19.11
uuid: 9.0.1 => 9.0.1
victory-native: 37.0.0 => 37.0.0
zod: 3.22.4 => 3.22.4
zod-formik-adapter: 1.2.0 => 1.2.0
npmGlobalPackages:
@aws-amplify/cli: 12.14.1
corepack: 0.29.4
detox-cli: 20.0.0
eas-cli: 8.0.0
npm: 9.9.2
redis-commander: 0.8.0
typescript: 5.3.3
Describe the bug
getting
AuthUserPoolException: Auth UserPool not configured.
when trying to log in. Amplify is configured in app.tsx early in the app, and i also printed out the configuration with Amplify.getConfig before calling signIn and the config is valid. The same configuration was used within an earlier version of RN, and it was working.I'm using the latest version of
aws-amplify
,@aws-amplify/react-native
and @aws-amplify/rtn-web-browser and i don't have installed packages like @aws-aplify/auth etc.Expected behavior
Amplify methods should work with newer RN versions.
Reproduction steps
Log output
Code snippet
aws-exports.js
No response
Manual configuration
The text was updated successfully, but these errors were encountered: