Using a fixed clientId
with Amplify PubSub causes an infinite connection loop
#12592
Open
3 tasks done
Labels
documentation
Related to documentation feature requests
feature-request
Request a new feature
PubSub
Related to PubSub category
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Authentication, PubSub
Amplify Categories
No response
Environment information
Describe the bug
When setting the
clientId
in the PubSub client to a fixed value to enforce security best practices (such as creating a least privilege policy to limit the connection with a specificclientId
only), the application enters an infinite connection loop, as the client tries to connect with the same ID causing a DUPLICATE_CLIENT_ID disconnection error.Expected behavior
The client connects
Reproduction steps
Create a React app, add Amplify PubSub as per documentation
Additionally set the
clientId
to a fixed valueCode Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: