yada
yada copied to clipboard
Authentication verify function cannot return a deferred
When the authentication :verify function returns a deferred, the credentials will be empty. Use cases for this are e.g. JSON token verification that (possibly) require a remote call.
Is this feasible? Looking at the implementation it will require the use of manifold loop/recur instead of reduce. I'm happy to give it a try.
I'm working on this currently. Yes, you're right, I've had to make use of manifold's loop and recur (and zip too!). Certainly authentication needs to be asynchronous, as it's one of those times where you're almost certainly going to need to check a central database.
👌Thanks!