Reroute from NEW_SESSION


#1

NEW_USER, NEW_SESSION, and LAUNCH are all implemented. The standard functionality is to call those handlers in that order.

Is there a way in NEW_SESSION to conditionally redirect to FooHandler without calling ON_REQUEST or LAUNCH? One branch of the condition will continue the flow to LAUNCH.


#2

How would you do this with a Hook?


#3

I think right now this isn’t possible. Need to check in with @AlexSwe about that.

Maybe you could have some condition on your ON_REQUEST to skip it:

ON_REQUEST: {
   if (this.$data.SkipRequestHandler) {
       return;
   }
   
   // ...
}

#4

There’s no builtin solution for this. I would recommend Jan’s approach.