Scenario
-
A user is trying to sign up and clicks SIGN UP → in Lock widget (we use it as a js lib)
-
Request is passing via a rule that shall redirect to our server. It is 1 of the 2 rules we have:
function (user, context, callback) {
context.redirect = {
url: ‘https://bbca5192.ngrok.io/webapp/api/v1/auth0/users/sign-up’
};return callback(null, user, context);
} -
The second rule just dumps the contents of
user
andcontext
to https://requestb.in:“redirect”:{
“url”:“https://bbca5192.ngrok.io/webapp/api/v1/auth0/users/sign-up”
} -
The server is never reached.
Summary
I can see the rule worked, just the redirect didn’t happen. What can I do? I tested the request from postman and it worked. The server is waiting for GET. If at least the server was hit I would have something in my logs.
Is it because we are not using the hosted lock?
Am I missing something OR is it a bug?