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
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
Navigate to the React Native application's directory and run npm start.
Press 'w' to open the application in a web browser.
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...]"
JHipster app's .yo-rc.json
INFO! Switching to JHipster installed locally in current project's node repository (node_modules)
JDL for the Entity configuration(s) entityName.json files generated in the .jhipster directory
JDL entity definitions
entity Region {
regionName String
}
entity Country {
countryName String
}
/**
* not an ignored comment
*/
entity Location {
streetAddress String
postalCode String
city String
stateProvince String
}
entity Department {
departmentName String required
}
/**
* Task entity.\n@author The JHipster team.
*/
entity Task {
title String
description String
}
/**
* The Employee entity.
*/
entity Employee {
/**
* The firstname attribute.
*/
firstName String
lastName String
email String
phoneNumber String
hireDate Instant
salary Long
commissionPct Long
}
entity Job {
jobTitle String
minSalary Long
maxSalary Long
}
entity JobHistory {
startDate Instant
endDate Instant
language Language
}
enum Language {
FRENCH,
ENGLISH,
SPANISH
}
relationship OneToOne {
Country{region} to Region
Location{country} to Country
Department{location} to Location
JobHistory{job} to Job
JobHistory{department} to Department
JobHistory{employee} to Employee
}
relationship OneToMany {
/**
* A relationship
*/
Department{employee} to
/**
* Another side of the same relationship
*/
Employee{department}
Employee{job} to Job{employee}
}
relationship ManyToOne {
Employee{manager} to Employee
}
relationship ManyToMany {
Job{task(title)} to Task{job}
}
service Region, Country, Location, Department, Task, JobHistory with serviceImpl
paginate Employee, JobHistory with infinite-scroll
paginate Job with pagination
Environment and Tools
openjdk version "17.0.9" 2023-10-17
OpenJDK Runtime Environment Temurin-17.0.9+9 (build 17.0.9+9)
OpenJDK 64-Bit Server VM Temurin-17.0.9+9 (build 17.0.9+9, mixed mode)
git version 2.43.0
node: v16.20.2
npm: 8.19.4
Docker version 24.0.7, build afdd53b
Docker Compose version v2.23.3-desktop.2
No change to package.json was detected. No package manager install will be executed.
Congratulations, JHipster execution is complete!
Sponsored with ❤️ by @oktadev.
Entity JDL or JSON files
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered:
yuchilai
changed the title
Login Failure and TypeError with AuthSession.startAsync in JHipster React Native App
Login Failure with Keycloak and TypeError: AuthSession.startAsync in JHipster React Native App
Dec 20, 2023
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
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)
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Environment and Tools
openjdk version "17.0.9" 2023-10-17
OpenJDK Runtime Environment Temurin-17.0.9+9 (build 17.0.9+9)
OpenJDK 64-Bit Server VM Temurin-17.0.9+9 (build 17.0.9+9, mixed mode)
git version 2.43.0
node: v16.20.2
npm: 8.19.4
Docker version 24.0.7, build afdd53b
Docker Compose version v2.23.3-desktop.2
No change to package.json was detected. No package manager install will be executed.
Congratulations, JHipster execution is complete!
Sponsored with ❤️ by @oktadev.
Entity JDL or JSON files
Versions (please complete the following information):
jhipster info
output:The text was updated successfully, but these errors were encountered: