-
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
[Feature Request] Add "setSignInUserSession" function #1486
Comments
We will track this feature request in the backlog for native platforms (iOS + Android). We will prioritize it based on how much traction it receives. |
Has there been any progress on this feature? We are developing an Android TV application with a similar use case as the Flutter app of fpabl0. |
Hi @fpabl0 can you elaborate what your use case is and how you would achieve that without sign in? From what I understand you will need to sign in using either escape hatch or your own apis and then store the session parameters in amplify. This is not possible to do since we are now using a state machine architecture and all other apis depend on the sign in state machine to be in the signed in state. Is there a reason you are looking for authentication outside of the SDK? |
Closing due to inactivity. |
|
Hi @gpanshu , As we expanded our team and moved from the MVP phase to an actual producted we started using amplify. Because we cannot migrate the existing/logged in users to the frontend amplify SDK, we pretty much only use the provided escape hatches and do tons of manual REST requests to the AWS infrastructure (e.g. for storage). I hope this explains the reasoning behind this feature request, but I am happy to explain in more detail if necessary. |
Hi @flodaniel feel free to create a PR contribution to our repository and we would evaluate its pros and cons to have such a feature available. In the meantime I am going to re-open this issue and track it as a feature request. Thank you. |
Based on my weird usecase, setting session manually could be useful. I don't know the specifics, but we had to do some work around in order for WeChat login to work for us. We POST WeChat login code to our BE, and they create user account on Cognito side, and return user data (token, refreshToken, idToken, etc.). And I had to use that data, to manage user session. I guess our BE could make this easier for me, but that's the hole I'm in 🙂 |
Hello, in amplify-js there is a
setSignInUserSession
function that allow us to set session tokens without using thesignIn
function, is it possible to have this feature in Android too? Thanks.Related to aws-amplify/amplify-flutter#845.
The text was updated successfully, but these errors were encountered: