Closed mattekelly closed 9 months ago
hello @mattekelly , if you are using RN your redirect sign-in/out shouldn't start with http
or https
@mattekelly, there's an example of how the Auth configuration in React Native should go (which differs a little from the JS and regular React steps) that you can see here for React Native setup and example redirect sign-in/outs. Like @israx referenced above, can you see if refactoring these resolves the issue?
You'll want to check that both the local config and the Cognito console are aligned as well!
@israx @cwomack using a non-http/https endpoint did get us past this error. While the link you point to does show such a link as an example, I'd suggest plainly stating that somewhere in the documentation.
One other question, with V6 we are seeing this modal upon calling sign out. We did not see this in V4 which we're upgrading from. Is there something we're doing that is causing the modal to say "to Sign In" ?
@mattekelly, that's odd and shouldn't be happening if you're calling the signOut
API. If you're seeing it during sign out, the code might be calling both signIn
and signOut
at the same time for some reason. Are you able to share the frontend code that is causing this?
Closing this issue as we have not heard back from you. If you are still experiencing this, please feel free to reply back and provide any information previously requested and we'd be happy to re-open the issue.
Thank you!
One other question, with V6 we are seeing this modal upon calling sign out. We did not see this in V4 which we're upgrading from. Is there something we're doing that is causing the modal to say "to Sign In" ?
From what I remember, this happens because Amplify needs to open a web browser to sign out for federated (social sign on) sessions. The naming is wrong in the popup and should be changed to "...wants to use amazoncognito.com to sign out"
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
Authentication
Amplify Version
v6
Amplify Categories
auth
Backend
Other
Environment information
Describe the bug
Receiving a
InvalidRedirectException: signInRedirect or signOutRedirect had an invalid format or was not found.
error when tapping either Google or Apple Sign In buttons.Expected behavior
Hosted UI opens and prompts for username and password for provider.
Reproduction steps
Code Snippet
Config object:
Our configure function (
getAmplifyConfig
returnsrackspaceDevAmplifyConfig
object above):Log output
aws-exports.js
No response
Manual configuration
Additional configuration
No response
Mobile Device
iPhone 15
Mobile Operating System
iOS 17.0
Mobile Browser
Safari
Mobile Browser Version
No response
Additional information and screenshots
No response