amazon-cognito-auth-js | Amazon Cognito Auth SDK for JavaScript simplifies | Authentication library

 by   amazon-archives JavaScript Version: v1.3.2 License: Apache-2.0

kandi X-RAY | amazon-cognito-auth-js Summary

kandi X-RAY | amazon-cognito-auth-js Summary

amazon-cognito-auth-js is a JavaScript library typically used in Security, Authentication, Firebase applications. amazon-cognito-auth-js has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

The Amazon Cognito Auth SDK for JavaScript simplifies adding sign-up, sign-in with user profile functionality to web apps. Instead of implementing a UI for sign-up and sign-in, this SDK provides the UI via a hosted page. It supports sign-up, sign-in, confirmation, multifactor authentication, and sign-out.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              amazon-cognito-auth-js has a low active ecosystem.
              It has 431 star(s) with 244 fork(s). There are 47 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 99 open issues and 77 have been closed. On average issues are closed in 17 days. There are 13 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of amazon-cognito-auth-js is v1.3.2

            kandi-Quality Quality

              amazon-cognito-auth-js has 0 bugs and 0 code smells.

            kandi-Security Security

              amazon-cognito-auth-js has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              amazon-cognito-auth-js code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              amazon-cognito-auth-js is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              amazon-cognito-auth-js releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.
              amazon-cognito-auth-js saves you 147 person hours of effort in developing the same functionality from scratch.
              It has 366 lines of code, 0 functions and 46 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of amazon-cognito-auth-js
            Get all kandi verified functions for this library.

            amazon-cognito-auth-js Key Features

            No Key Features are available at this moment for amazon-cognito-auth-js.

            amazon-cognito-auth-js Examples and Code Snippets

            No Code Snippets are available at this moment for amazon-cognito-auth-js.

            Community Discussions

            QUESTION

            Amazon Cognito throws an error if I try to sign in a second time with social sign in (Google/Oauth)
            Asked 2021-Sep-15 at 07:24

            I am writing here to ask for help or at least a clarification.

            I work at a startup and a couple of weeks ago we launched our SaaS. We manage all our users with Aws Cognito. I'm using amazon-cognito-identity-js for the authentication on the frontend and both sign-up and sign-in work fine. We want to add social sign-in (OAuth) through Google and for that I'm using aws-amplify-js, calling Auth.federatedSignIn({provider: 'Google'}) as specified in Amplify docs.

            The first time a user sign in with Google, a new user is correctly created in Cognito, but if I try to sign in again with the same user I get the following error: #error_description=Invalid+user+attributes%3A+email%3A+Attribute+cannot+be+updated.%0A+&error=invalid_request.

            Apparently this is a rather common issue:

            After looking for a solution I believe this happens because when we created our User Pool we set email as a required attribute and it was automatically set as immutable. Apparently if you want to use social sign-in every attribute should be mutable (as specified here because on every new sign in Cognito tries to update them.

            So now we're stuck. It's not possible to change email attribute from immutable to mutable for an existing User Pool and as far as I know it's not possible to prevent Auth.federatedSignIn({provider: 'Google'}) to update every user attributes.

            We cannot simply delete and recreate our User Pool because we're already in production and we got several users already registered. Is there any possible solution or workaround to fix this? Any kind of suggestion would be very helpful!

            ...

            ANSWER

            Answered 2021-Sep-15 at 07:24

            As of now there is nothing more you could do then to migrate all the users to another User Pool.

            For users using federated sign in this won't change anything. You don't store their passwords so they won't see any difference.

            The problem starts with users for which you has passwords. While you can migrate them to another pool, they will have to set up a new password.

            You could write a simple script that could create a CSV file with the user data and then use the import function of the new User Pool to import all users. All non-federate users will then need to set new password.

            You can just notify all of them that this will be happening because the whole operation will involve some downtime (since you don't want the two pools to get out of sync).

            Source https://stackoverflow.com/questions/69188292

            QUESTION

            How to refresh token using AWS coginto auth sdk
            Asked 2021-Mar-19 at 22:44

            I am working on a feature of refreshing token once it's expire. I used amazon-cognito-auth-js to do the authorization and check here as an example, I implemented the below method to refresh token. however it doesn't work. Below is my code, and the session doesn't refresh as I expected. There is no synax error, just the auth token still expired. By the way, I use react.

            ...

            ANSWER

            Answered 2021-Mar-19 at 22:44

            I close this question by myself. My solution is set up a timer in the frontend, once timer is over 1hr(for example). Just let user logout. Here is why you shall not refreshing token in the SPA. And here is the solution for dealing with refresh_token expire

            Source https://stackoverflow.com/questions/66681813

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install amazon-cognito-auth-js

            There are two ways to install the Amazon Cognito Auth SDK for JavaScript and its dependencies, depending on your project setup and experience with modern JavaScript build tools:.
            Download the JavaScript libraries and include them in your HTML, or
            Install the dependencies with npm and use a bundler like webpack.
            This method is simpler and does not require additional tools, but may have worse performance due to the browser having to download multiple files.
            The Amazon Cognito Auth SDK for JavaScript, from /dist/amazon-cognito-auth.min.js

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/amazon-archives/amazon-cognito-auth-js.git

          • CLI

            gh repo clone amazon-archives/amazon-cognito-auth-js

          • sshUrl

            git@github.com:amazon-archives/amazon-cognito-auth-js.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Authentication Libraries

            supabase

            by supabase

            iosched

            by google

            monica

            by monicahq

            authelia

            by authelia

            hydra

            by ory

            Try Top Libraries by amazon-archives

            amazon-dsstne

            by amazon-archivesC++

            aws-mobile-react-native-starter

            by amazon-archivesJavaScript

            amazon-cognito-identity-js

            by amazon-archivesJavaScript

            aws-big-data-blog

            by amazon-archivesJava