Optional get user script

Hello,

We’re implementing a custom db connection. Unfortunately we don’t have an endpoint to do the get user call and the third party that needs to develop it if we really need it is slow and cumbersome.

In the documentation I saw that

The script is optional for both legacy authentication and for automatic migration, though we recommend its implementation

But when I leave the get user script empty, I get an error that I have to fill in at least one character.

How can I disable the get user script?

Thanks.

Hi @jgeerts,

Welcome to the Community!

I know you can turn it into a no op function by returning null for both callback params. This is how you turn it ‘off’ after a migration. Like this:

function getByEmail (email, callback) {
  return callback(null, null);
}

Hope this helps,
Dan

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.