Has anyone gotten AWS Amplify to work with Solid.js?

I've been relying on the Cognito Hosten UI, AWS provides, and I can start the correct sign up UI and will be redirected back to my Solid.js site. Unfortunately neither using the code myself nor using the AWS Amplify library to handle the code worked. In the react apps I used previously, I used the withAuthenticator HOC provided by 'aws-amplify-react'
1 Reply
Bersaelor
BersaelorOP3y ago
specifically, after the Hosted UI redirects back to my app, I get
signIn_failure: Username and pool information are required.
signIn_failure: Username and pool information are required.
which makes me wonder whether the pool id is not properly set. I call the Amplify.configure() in the index.tsx, so It should be called before the aws code runs, right?
import App from './components/App/App';

console.log("Configuring Amplify next")
Amplify.configure(awsConfig);

// https://aws-amplify.github.io/docs/js/hub
Hub.listen(/.*/, ({ channel, payload }) =>
console.debug(`[hub::${channel}::${payload.event}]`, payload)
)

render(() => (
<Router>
<App />
</Router>
),
document.getElementById('root') as HTMLElement
);
import App from './components/App/App';

console.log("Configuring Amplify next")
Amplify.configure(awsConfig);

// https://aws-amplify.github.io/docs/js/hub
Hub.listen(/.*/, ({ channel, payload }) =>
console.debug(`[hub::${channel}::${payload.event}]`, payload)
)

render(() => (
<Router>
<App />
</Router>
),
document.getElementById('root') as HTMLElement
);

Did you find this page helpful?