-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useAuthenticator is making me unauthenticated. #5368
Comments
👋 Hi @MrFarhan, I saw that Docs for react native cli: https://reactnative.dev/docs/getting-started-without-a-framework Docs for Expo: https://reactnative.dev/docs/environment-setup#start-a-new-react-native-project-with-expo |
yes, i am using the latest react native cli. Below is my react native version:
|
Got it, thanks @MrFarhan. What version of Amplify are you using? If possible, could you copy and paste your package.json? |
|
Hi @MrFarhan, could please provide a minimum reproducible repository or setup that I can use to debug the issue you are experiencing? This will help me identify the problem more efficiently. Thank you! I tried to get your example code working, but had to remove a lot of the code for the app to work and was not able to get the bug to reproduce |
Hi @timngyn , here you can find the minimal working code with the auth issue https://github.com/MrFarhan/General-repo-for-testing/tree/amplify-authenticator-issue. To run this you need to add your aws exports file at the root of this project. Further you can also have a look on below video for further reference. |
Screen.Recording.2024-07-16.at.11.11.56.PM.mov |
Thanks @MrFarhan for your minimal working code. I'm able to run the repo but am having trouble reproducing the issue. Are there any additional details or configuration that might be needed to reproduce this issue? Which device are you using to test? Is the issue isolated to specific accounts? Screen.Recording.2024-07-18.at.12.17.04.PM.mov |
Hi @jacoblogan , I don't understand what should i provide you, i have given you the repo, and showed you the issue with this specific code on the simulator... |
@MrFarhan when I run the code locally I'm not able to reproduce the issue, can you provide the device definition you are using in the simulator as well as your aws-exports (minus any sensitive information) so that I can better align my local reproduction to yours. |
@MrFarhan Are you still experiencing this issue? We haven't been able to reproduce it. Are you able to share your aws_exports / amplify_outputs file with sensitive information redacted? |
Before creating a new issue, please confirm:
On which framework/platform are you having an issue?
React Native
Which UI component?
Authenticator
How is your app built?
npx create-react-native-app
What browsers are you seeing the problem on?
Android (React Native)
Which region are you seeing the problem in?
No response
Please describe your bug.
useAuthenticator is making me unauthenticated, when i close my react native app.
This happens randomly, some times it requires 2 to 3 times close then it makes my unauthenticated, and sometimes it does after 6 to 7 times reopening the app.
Below is the code:
Navigation file:
Splash screen:
Also the access token expiry time is 1 day.
What's the expected behaviour?
It must not make me unauthenticated...
Help us reproduce the bug!
Use my provided code, open the app, and close it a few times.
Code Snippet
// Put your code below this line.
Console log output
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: