aws-amplify / amplify-js

A declarative JavaScript library for application development using cloud services.
https://docs.amplify.aws/lib/q/platform/js
Apache License 2.0
9.44k stars 2.13k forks source link

Some IdPs have a limit on the length of the state parameter. #4998

Open lorentzca opened 4 years ago

lorentzca commented 4 years ago

Is your feature request related to a problem? Please describe. Some IdPs have a limit on the length of the state parameter. For example, the following error was returned from the federated IdP when accessing the Cognito authorization endpoint:

Describe the solution you'd like Adjust the length of the state parameter generated by Cognito.

Describe alternatives you've considered I found that adding a short length nonce parameter could work around this problem.

So, it would be nice if users could specify the query string without modifying the library.

Thank you.

irfanbabar15 commented 2 years ago

How did you monkey patch it ? I have same issue.