Skip to content
Advertisement

Tag: auth0

Not able to return authResponse from auth0-js

I’m trying to implement an login mechanize and not able to return a value from the callback function. I’m using this npm package: auth0-js. There’s two files in my setup. The first one is authService.js where I have my login logic: The second one: index.js I tried returning the value from the callback, as well as assigning the result to

Issue with Auth0 and javascript Lock v11

I’m trying to test a basic authentication module on my web app using auth0 and Lock v1 login form. This is a snapshot of the code I’m using: The problem is that I’m not able to get the auth0 modal since I’m getting the following error: I don’t understand if I’m configuring in a wrong way my application on Auth0

React: How to mock Auth0 for testing with Jest

I’m using React(react-create-app and TypeScript). Login is made with Auth0. I want to write tests with Jest, and I found this ressource which is basically the only thing around that speaks about Mocking the Auth0 object. So my code looks like this: But I end stuck with this error: Property ‘mockReturnValue’ does not exist on type ‘() => IAuth0Context |

Advertisement