-
Notifications
You must be signed in to change notification settings - Fork 119
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
fetchAuthSession returns isSignedIn=false when login is performed via external app #2773
Comments
Hi @arctop-sk, thanks for filing this issue. I am wondering if you can expand on your use case a little bit. Here's how I am understanding your description, please let me know if I am interpreting anything incorrectly.
Is that an accurate description? Does the user need to log in again in your application? |
Not exactly.
|
Thanks for the clarifications, that should be enough to reproduce this issue. We'll need to investigate. Please keep this issue updated if you find any additional information! |
I just did a quick check looking for workarounds. |
Another update that I have just found, and perhaps a missing piece of information. The Service runs in it's own process independent of the App. Our app works with the service in the same manner as any other app.
Note that all calls to fetchAuthSession are done via a wrapper singleton and I have verified that the same instance is called by both the service and the rest of the app. |
so one last comment and this is probably the issue. Our service is running in its own process, so the context in which the AWS session runs in is different between the app itself and the service, hence the discrepancies. I wouldn't know what would be a solution for this, but I believe this is the problem |
final update. Moving our service to the app's process solves the issue. |
Hi @arctop-sk, glad your issue has been resolved! Thank you for providing your steps and findings, we believe it will be valuable when we work on the issue in the future. Please re-open the issue should you wish to revisit it. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Before opening, please confirm:
Language and Async Model
Kotlin - Coroutines
Amplify Categories
Authentication
Gradle script dependencies
Environment information
Please include any relevant guides or documentation you're referencing
No response
Describe the bug
We have the ability for another app to call our login screen to allow the user to access our backend.
This works via a service that access our backend, and an activity that launches the Authenticator UI.
Our app uses the same service.
When a user logs in via the activity from another app, although I can see in the hooks that the user is signed in, and if I close the 3rd party app the user is logged in our app, fetchAuthSession returns a signedIn = false
This means the actual signIn is working, but the authSession request returns false information.
I've also tried using the option to force refresh to no avail.
Reproduction steps (if applicable)
No response
Code Snippet
// Put your code below this line.
Log output
amplifyconfiguration.json
No response
GraphQL Schema
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: