Hi !
I stumbled on those community posts regarding my login flow issues (namely having the HLP dealing with rules errors) and couldn’t find any update on them :
Question: Can I show errors raised in rules in the login page?
Sometimes you have a rule that denies authorization, like this:
function (user, context, callback) {
if (someCondition) {
return callback(new UnauthorizedError('You are now allowed.'));
}
return callback(null, user, context);
]
Can that error be displayed in the login window?
Answer: No (how’s that for a spoiler?)
At least at the time of writing this, by the time rules run the authentication step (which is the responsibi…
Handling authorization_error with hosted pages , especially the answer from @andres.aguiar : Handling authorization_error with hosted pages - #11 by andres.aguiar
Did anything change regarding this topic in the last 2-3 years ?
1 Like