Mention the specific scenario in which the bug occurs (e.g., during login with Keycloak in dev mode).
Instructions To reproduce
folder
├── SampleApp
└── backend
Run JHipster in the backend folder to generate a full-stack JHipster project.
Move to a different folder and run rnhipster.
Name the React Native application "RnApp".
Set the JHipster app directory to "../backend".
Opt not to enable end-to-end tests with Detox.
Modify the CORS configuration in the application by adding http://localhost:19006 and http://localhost:8081 to the list of allowed origins. The updated CORS configuration is as follows:
cors:
# Allow Ionic for JHipster by default (* no longer allowed in Spring Boot 2.4+)
allowed-origins: 'http://localhost:8100,https://localhost:8100,http://localhost:9000,https://localhost:9000,http://localhost:9060,https://localhost:9060,http://localhost:19006,http://localhost:8081'
# Enable CORS when running in GitHub Codespaces
allowed-origin-patterns: 'https://*.githubpreview.dev'
allowed-methods: '*'
allowed-headers: '*'
exposed-headers: 'Authorization,Link,X-Total-Count,X-${jhipster.clientApp.name}-alert,X-${jhipster.clientApp.name}-error,X-${jhipster.clientApp.name}-params'
allow-credentials: true
max-age: 1800
7. Navigate to the React Native application's directory and run npm start.
8. Press 'w' to open the application in a web browser.
9. Attempt to log in, but encounter a failure with the error message displayed in the console: "TypeError: AuthSession.startAsync is not a function at [...stack trace details...]"
<!-- Please add steps to reproduce the error -->
**JHipster app's `.yo-rc.json`**
INFO! Switching to JHipster installed locally in current project's node repository (node_modules)
██╗ ██╗ ██╗ ████████╗ ███████╗ ██████╗ ████████╗ ████████╗ ███████╗
██║ ██║ ██║ ╚══██╔══╝ ██╔═══██╗ ██╔════╝ ╚══██╔══╝ ██╔═════╝ ██╔═══██╗
██║ ████████║ ██║ ███████╔╝ ╚█████╗ ██║ ██████╗ ███████╔╝
██╗ ██║ ██╔═══██║ ██║ ██╔════╝ ╚═══██╗ ██║ ██╔═══╝ ██╔══██║
╚██████╔╝ ██║ ██║ ████████╗ ██║ ██████╔╝ ██║ ████████╗ ██║ ╚██╗
╚═════╝ ╚═╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═╝
https://www.jhipster.tech
Welcome to JHipster v7.9.4
Welcome to the JHipster Information Sub-Generator
##### **JHipster Version(s)**
Describe the bug
Mention the specific scenario in which the bug occurs (e.g., during login with Keycloak in dev mode).
Instructions To reproduce
folder ├── SampleApp └── backend
backend@0.0.1-SNAPSHOT /Users/yuchilai/Projects/Testing/react-react-native/passme/backend └── generator-jhipster@7.9.4