Comments (7)
@cwomack I can confirm it is similar, except that issue is from v5 amplify.sendCustomChallengeAnswer
. But v5 can integrate nicer with amazon-cognito-identity-js
(v2) to solve that issue.
My current issue is based on v6 and i can't see any examples of using amplify v6 and @aws-sdk/client-cognito-identity-provider v3 together.
from amplify-js.
Following up to say we'll keep both issues open and separate for now, because of the extra context here regarding the new/cross tab functionality described.
from amplify-js.
We have the exact same use case, where we send a magic link to our users to login without a password. With v5, we're able to serialise the user/session into local storage, and hydrate it once the user clicks on the link in the email, thanks to interop with amazon-cognito-identity-js
.
Having this part of amplify auth would be extremely awesome, or else have a way we can implement it on our side.
from amplify-js.
Hello, @zcemycl and thanks for opening this issue. You are correct that confirmSignIn()
currently needs to be called alongside signIn()
due to the session information and challengeResponse
being required as part of the confirmation flow.
Are you able to provide more context around what the use case is here or why you're needing to call these separately in the authentication flow? Thanks!
from amplify-js.
@cwomack for example, this one from aws tutorial https://aws.amazon.com/blogs/mobile/implementing-passwordless-email-authentication-with-amazon-cognito/ .
- You login the website by providing email that is in the user pool.
- the custom auth flow allows that user by issuing an auth challenge which is sending the user email a magic link.
- If the user clicks on the magic link, it supposes to send a confirm auth challenge to custom auth flow to verify the user identity.
- BUT since clicking the magic link or copying magic link to the browser will lead refreshing the page, the original signin function is discontinued.
I can replicate that tutorial with "@aws-sdk/client-cognito-identity-provider" but "aws-amplify" is not working.
from amplify-js.
Related to #10469.
@zcemycl can you review that issue I linked above to see if it would encompass what you're asking for in this issue?
from amplify-js.
@zcemycl, thanks for the quick response! I've got this marked as a feature request and will review this internally with the work that is currently underway with the other issue. This may be considered a duplicate if that's the case, but we'll capture the scope (and of course v6 aspect) of what's in this issue if we consider them duplicates.
from amplify-js.
Related Issues (20)
- Next, js, Amplify js.fetchAuthSession({forceRefresh: true}) does not work as expected and returns tokens as undefined. How to manage a refresh token in Amplify v6 in Next.js HOT 12
- Amplify CLI Gen 2 - Multiple SortKeys combined into one input with GraphQL Generation HOT 5
- AWS storage upload issue HOT 3
- Datastore.save() sending _version of previous query model instead of current model. HOT 2
- runWithAmplifyServerContext throwing error, ⨯ Error: Cannot access Cognito.length on the server. You cannot dot into a client module from a server component. You can only pass the imported name through. HOT 4
- 6.3.3 is stable ? HOT 1
- ResizeObserver loop when navigating in the Authenticator component HOT 1
- [v6] resetPassword not trigger UserMigration lambda HOT 2
- Add timeout on GET and POST api calls HOT 4
- No federated JWT token when using AppSync OIDC in Amplify Gen2 HOT 5
- Permission denied - allow.authenticated() HOT 6
- [v6] sendUserAttributeVerificationCode not send code to destination email HOT 5
- MD5 not calculating correctly when selecting file from broswer, failing with BadDigest Error HOT 5
- Auth.SignIn not allowing username only signin HOT 2
- `Hub.listen` not firing when inside `useEffect` HOT 14
- Hub should automatically fire `tokenRefresh` event through Hub HOT 1
- Google login in react native requires two login attempts to work only on production ANDROID HOT 5
- Gen 2 Data client GSI query shows more operators than AppSync console for the same input type
- aws-amplify/auth fetchAuthSession makes network calls to https://cognito-identity.us-east-1.amazonaws.com/ even after setting up custom domain on cognito pool HOT 3
- credentialsProvider not a recognized member of type AuthConfig HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amplify-js.