awslabs / cognito-at-edge

Serverless authentication solution to protect your website or Amplify application
Apache License 2.0
168 stars 54 forks source link

Too many redirects issue after successful authentication #40

Closed karthikvadla closed 1 year ago

karthikvadla commented 1 year ago

Hello Team,

Currently i'm hitting with too many redirects issue, even after successful authentication and setting cookies.

Somehow consecutive request does not have idToken, so it is re-directing multiple times and erroring out.

I have configured my Cognito callBackUrls same as my site url https://xyz.test.com.

Any help here please.

Thanks Karthik

karthikvadla commented 1 year ago

Bumping up version to cognito-at-edge:^1.2.2 fixed my issue. I was using this within my corp npm registry where i had two different versions of npm package under same name with company prefix.

I just used direct npm package within corp npm registry, which fixed my issue.