Auth0 Home Blog Docs

Rules not triggered when authenticating with auth0-js

Hi, I have some straightforward rules that work for sure (I tried making /oauth/token request).
But when I log in with auth-js@9 they are not triggered (token payload is not modified). Code used:

const auth = new WebAuth({
  domain: VARS.AUTH_DOMAIN,
  clientID: VARS.AUTH_CLIENT_ID,
  redirectUri: VARS.AUTH_CALLBACK_URL,
  responseType: VARS.AUTH_RESPONSE_TYPE,
  scope: VARS.AUTH_SCOPE
});
function login(email, password) {
  const options = {
    username: email,
    password
  };
  return new Promise(resolve => {
    auth.login(options, ....

Let me reach out to auth0.js tool maintainer to get some guidance on this one!

I noticed that auth0-js makes a request to /co/authenticate instead of /oauth/token, maybe it can help.

I reached out to the repo maintainers some time ago, should have an answer soon!

Got one more request. Can you record a HAR file for me capturing the whole process and then send it to me via private message?

Here’s how to do it:

Friendly ping :slight_smile: Have you had a chance to snag me a har file in your free time?

Hmm, I’ve sent. Didn’t you receive it?

Got it! Must have missed it! Let me investigate them and get back to you shortly!

Hey there!

Terribly sorry for such delay with response. I just shoot you a DM. Thank you a lot for checking it once you have some time!