Auth0 sell a bunch of authentication products that are similar/compete with cognito.
The difference between cognito and auth0 is that auth0 has documentation, code examples and a decent API guide.
Cognito has a poorly documented API, terrible integration guides and even worse debugging options
Once you have it going, cognito is grand. To get there, its a huge learning curve