4,944 questions
0
votes
0
answers
26
views
Next.js + AWS Amplify Middleware not redirecting after first login until refresh
I am working on a project using Next.js (App Router) and AWS Amplify Auth. I have implemented middleware to restrict access and redirect users based on a custom Cognito attribute (custom:...
Advice
0
votes
6
replies
50
views
Display line of code in AWS CloudWatch for Amplify NodeJS written in typescript
I have the following resource in Amplify v2:
export const myFunction = defineFunction({
name: 'my-function',
layers: {
sharp: "sharp_arm64:1",
},
environment: {
BUCKET_NAME: ...
0
votes
1
answer
31
views
AWS Amplify Long type to Int64 with Swift and GraphQL
I have issue where I cannot map Long type in Swift.
E.g. schema.graphql
scalar Long
input TableLongFilterInput {
between: [Long]
contains: Long
eq: Long
ge: Long
gt: Long
le: Long
lt: ...
0
votes
1
answer
42
views
Amplify Flutter + Cognito Identity Pool works via AWS CLI but fails in app (“No identity pool registered for this account”)
I’m integrating AWS IoT Core with a Flutter app that already uses Amplify Auth (Cognito User Pool).
To allow IoT connections, I added a Cognito Identity Pool section to my amplifyconfiguration.dart (...
0
votes
0
answers
18
views
Customising incorrect and broken domain from amplify's build notification on sns
We've a 3 envs for our amplify project, one of being dev, from the branch dev/main, but, the actual domain it's for / that we're interested in is https://dev.seaders.com. The notification that comes ...
0
votes
0
answers
27
views
Client of Amplify Gen 2 is not being properly generated for subscription
Logging const client = generateClient<Schema>(); results in the following, which shows that the client is improperly generated:
{
"models": {},
"enums": {},
"...
1
vote
0
answers
57
views
Unable to complete Amplify v6 Cognito OAuth flow in my Next.js App
I am using Amplify and Cognito's hosted UI Login page to handle my user authentication. I am able to redirect to the cognito hosted page, enter my user credentials, and redirect page to my sign in ...
0
votes
1
answer
61
views
NextAuth Google Login Redirect to Localhost instead of Production Domain
I am doing a project which will use Google Login in NextJs
This is my setting in OAuth 2.0
and in amplify environment variables
After I deployed the app and try to login
It redirect me to http://...
-1
votes
1
answer
86
views
(Amplify Gen 2) Bedrock AI Generation Produces ValidationException (Mapping Error) [closed]
I'm following the AWS Amplify Gen 2 documentation here: https://docs.amplify.aws/react-native/ai/generation/ exactly as it is written. Our ./amplify/data/resource.ts looks like this:
const schema = a....
0
votes
0
answers
26
views
AWS Amplify signInWithRedirect integration with Azure AD (Entra ID) App Registration. Can't set Application ID URI to "urn:amazon:cognito:..." anymore
To integrate my apps with Active Directory I add the following to amplify/auth/resource.ts:
externalProviders: {
saml:
{
name: 'MyApp',
...
1
vote
0
answers
46
views
Process is not defined / process.binding is not supported error after deployment, but works locally
I have a Next.js 15 project that uses AWS Amplify (Cognito) for authentication.
Here’s a simplified version of my config file:
"use client"
import { Amplify, type ResourcesConfig } from &...
0
votes
1
answer
39
views
How to wire AWS amplify resources together
In an AWS Amplify backed application, I can define two data models Inventory and Order. Then Amplify generates a GraphQL API and underlying DynamoDB tables for these models.
Then I can create a ...
1
vote
0
answers
128
views
Expo SDK 54 + AWS Amplify Auth (Cognito v5) → TypeError: Cannot read property 'computeModPow' of null on login
After upgrading my React Native project to Expo SDK 54 (React Native 0.81.4), the login flow using AWS Amplify Auth (Cognito v5) stopped working.
When calling Auth.signIn(username, password) I get ...
0
votes
0
answers
27
views
Does Amplify AWS does not generate device token on V6 for Push Notification?
According to the latest documentation of Aws Amplify V6 ,to generate token we have to use onTokenReceived from aws-amplify/push-notification for implementing push-notifications on Mobile using react-...
0
votes
1
answer
56
views
AWS IoT MQTT test client with Amplify GEN 1
I’m trying to connect my React webapp (Vite + TypeScript) to AWS IoT Core over MQTT WebSocket using Amplify GEN 1 with AWSIoTProvider. I've been following this docs
I configured Amplify and PubSub ...
0
votes
1
answer
87
views
Nextjs 15+ on aws amplify
I'm deploying a nextjs app router project on AWS Amplify, not my personall preference but the client wants it on AWS
When deploying, I found that the Amplify enforces minimal edge runtime on all of my ...
0
votes
0
answers
72
views
How to properly use "limit" in AWS Amplify Gen2 list-function?
Please help me to understand how to properly and correctly use the list-function of AWS Amplify.
After running into many issues of existing data not being found/retrieved, I found out that if no "...
0
votes
1
answer
56
views
AWS Amplify Gen 2 runtime env vars not available at SSR, causing undefined errors
Major issues
I have a Next.js application that previously ran without issues on Vercel. However, upon deploying it to AWS Amplify, I encountered a 500 Internal Server Error. Based on the CloudWatch ...
1
vote
1
answer
113
views
Google external provider redirect is coming from a different origin error
I have an Amplify Gen 2 app with Google SSO.
When developing locally and when using AWS generated domains like https://dev.app_id.amplifyapp.com Google SSO works great.
On Google Cloud credentials ...
0
votes
0
answers
28
views
Bundling files with a lambda function in Amplify Gen2
I am trying to reference a directory of files in a lambda function using Amplify Gen2. I have created the folder in /functions/validateJsonAgainstSchema with the handler.ts file
import Ajv2020 from '...
1
vote
1
answer
57
views
Add a Policy Statement to a Trigger in Amplify
I'm writing a Gen2 Amplify application and I want to implement a post-confirmation trigger to call an external service and save part of the response as a custom attribute of the user's profile. My /...
1
vote
1
answer
56
views
404 in DevTool Console for website on AWS Amplify/Vue
I’m running into an issue with my AWS Amplify-hosted website, which is built using Vue 3 and Vite.
When I load the main page (e.g., https://url.de/) and navigate to sub-pages (e.g., https://url.de/...
0
votes
0
answers
35
views
Nextjs Amplify images gives 404
Using the Nextjs 15 app router-based project and deploying on AWS Amplify.
The project is a turborepo setup, and the configuration files are
next.config.ts
import { withSentryConfig } from "@...
0
votes
0
answers
526
views
Deploying nextjs turbopack application returns 404 error
I have a Next.js 15 application that builds successfully on AWS Amplify but returns a 404 error when accessing the deployed site. The build completes without errors, but the homepage and other routes ...
0
votes
0
answers
60
views
NextJS (15.4.3) deploy to Amplify - keeps failing, seems to be a paths issue
Deploys to Vercel just fine, but fails on the build in Amplify every time.
Error: Cannot find module '@tailwindcss/postcss'
Module not found: Can't resolve '@/auth'
Module not found: Can't resolve '...
0
votes
1
answer
213
views
Amplify deployments are failing due to error saying Unable to assume specified IAM Role (Backend app)
I have been using AWS Amplify Gen 2 without any issues until 1 month back. But Yesterday when I pushed some code and tried to deploy it, it failed. The error I got was:
2025-07-24T00:22:12.992Z [ERROR]...
0
votes
0
answers
22
views
Handling user social provider sign in Amplify Gen2
I'm trying to fetch the user's attributes in my react app, after he signed in through Google as a social provider.
I successfully sign in/up the user using the signInWithRedirect({provider: 'Google'});...
1
vote
0
answers
63
views
Trigger Lambda function backend onChange AWS Amplify Gen 2
I couldn't find any instructions on how to add listeners or ways to trigger a lambda function when events fire. I have a few lambdas set up as part of the sign-up/auth flow but I am struggling to get ...
0
votes
0
answers
30
views
Amazon Coginito iOS Social Provider Linking without Coginito Hosted UI
There are possible duplicates for this issue but none of that given me any solution yet.
My app is signed in with phone number in Cognito and inside the app there are options to connect with Google, ...
0
votes
0
answers
62
views
How to use guest() access to data in aws amplify gen2?
How to use guest() access to data in aws amplify gen2 ? While i have added the product as the owner, the product is not fetched while listing the products when i am not logged in. This is not working ...
1
vote
0
answers
49
views
Can I open my camera on webview without "allowing" in the phone everytime it opens?
In my React Native app, I need to open a WebView redirecting to my NextJS application. Its a simple page rendering a FaceDetection component from Amazon Amplify UI. The "problem" (which I ...
0
votes
0
answers
30
views
Unable to Import Amplify Auth in React with ESNext and Vite Configuration
I'm implementing a Login screen with MFA using Amplify. However, I'm getting the following error when running the project:
Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/aws-...
0
votes
1
answer
81
views
How to use two authmodes in AWS amplify gen2
I want to use both userPool and identityPool auth modes in my Amplify Gen 2 app. I need unauthenticated users to have read-only access, and authenticated users to have full access. But currently, I ...
0
votes
0
answers
39
views
How can I make aws amplify uses iam authentication to query from appsync?
I am trying to build a graphql client to query/mutation on AWS appsync. I come up with the library aws-amplify. My appsync uses IAM authentication method. I created an IAM user in my AWS account and I ...
0
votes
1
answer
269
views
AWS Amplify v6 OAuth Configuration: "OAuthNotConfigureException: oauth param not configured" despite correct config
I'm getting an OAuthNotConfigureException: oauth param not configured error when trying to use Google OAuth with AWS Amplify v6, even though my configuration appears correct.
Environment:
AWS Amplify ...
0
votes
0
answers
51
views
next.js app deployed with Amplify hosting '<myapp>.amplifyapp.com' page can’t be found'
I am deploying a next app via AWS CDK using Amplify hosting. When navigating to the successfully deployed site, receive 'This .amplifyapp.com page can’t be found'. build spec is as so:
buildSpec:...
0
votes
0
answers
57
views
Async "Objects are not valid as a React child"
I am working on a React app and am getting the following error
Uncaught Error: Objects are not valid as a React child (found: [object Promise]). If you meant to render a collection of children, use an ...
0
votes
0
answers
80
views
AWS Amplify Redirects not working correctly
I have an Angular application with normal Angular internationalization (English & German).
This means that my frontend is built once in English and once in German.
It is located in the following ...
0
votes
0
answers
48
views
Using aws-amplify in jest test is unusable slow
I use the aws-amplify library to fetch oauth tokens. In productive code a signIn takes less than 1 second. When executing the same functionality in jest (v29), the sign in takes around 6 seconds which ...
0
votes
0
answers
34
views
How do I Hide Default Tabs on the AWS Amplify Authenticator Component?
I am trying to customize my login view using the AWS Amplify Authenticator. I've been following the documentation here.
My problem is that I am unable to hide the Tab Buttons for Sign in and Create ...
0
votes
0
answers
32
views
Ionic Angular App Issue in google sso while login using previous email
I am working on ionic app where have implemented google sso and apple sso. Previously we had issue, after even logout it was not clearing the cookies from the browser and if login again with sso it ...
0
votes
1
answer
64
views
How to resolve mixed Content: The page at 'https://example.com' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://...'
I have a .NET Web Api running on an AWS Elastic Beanstalk environment. It was assigned a domain: http://smart-qualify-api-uat.af-south-1.elasticbeanstalk.com/. I also built a website which I hosted on ...
0
votes
1
answer
145
views
Why doesn't OIDC SSO work between apps on different domains with custom UI?
I'm building SSO using OpenID Connect between two apps:
App1 (frontend and backend done in PHP), hosted at app1.stk.in
App2 (frontend in Angular and backed in Python), hosted at app2.cloud.net
Both ...
1
vote
0
answers
56
views
Weird stuff happening with Amplify v6.15
I recently upgraded from Amplify 4.something (this has been working for ~3 years) to v6.
I’m using aws-amplify v6.15 with React Native v0.79.2. I’ve also installed:
"@aws-amplify/react-native&...
0
votes
0
answers
133
views
Issue with Custom Login Screen Instead of AWS Cognito Hosted UI with prompt=none in Multiple Applications
We are using the prompt=none method for silent login in our system. We have multiple applications that share the same user pool, but each application is hosted on a different domain. Our requirement ...
0
votes
1
answer
42
views
NextJS AWS Amplify DOCX Word Document Corruption
I have a NextJS application which is deployed on AWS Amplify. I have a function on the client side which creates a Word document using docx.js.org and my button onClick downloads the Word document (...
0
votes
0
answers
38
views
In /oauth2/authorize sign in, is it necessary to trigger the /logout endpoint
With /oauth2/authorize it leaves cookies in the browser.
For the /logout, it only clears cookies but doesn't revoke any access so essentially it does nothing except cleaning up the browser. While /...
0
votes
1
answer
61
views
dynamoDB table access : how to authorize guest user to read and grant more rights to logged users on a group-basis
# context : AWS Amplify gen 2 (angular)
According to Amplify doc https://docs.amplify.aws/angular/build-a-backend/data/customize-authz/ ,the available authorization strategies do not consider my case,...
0
votes
0
answers
41
views
Amplify OAUTH provider only call with 1 scope
I have setup an OAUTH provider with Amplify (LinkedIn) but the URL called contains only 1 scope even though my scope array contains several in the configuration. Is it possible to specify to Amplify ...
0
votes
1
answer
46
views
Unable to signIn a user without email confirmation AWS Amplify
I recently set up authentication on Cognito via Amplify and am trying to set up mail verification. This verification can be done as long as the user has just created an account.
However, I can't send ...