in our app, we are allowing users to register using social media or useraccounts. this means they can come to the app, hit “Login With Facebook” (from accounts-facebook), and immediately have a user account and logged in.
but in order to access the real content in the app, we need to collect some registration data, e.g. date of birth. We present them immediately with a form to provide this info. once they have done so, we give them a role (alanning:roles), so we can enable/disable features and provide security.
but until then, we’ve taken the approach of checking for that role on Every Single Page, and showing them the “registration” page w/ a form to provide that info.
from what i can tell, this is the Meteor way to do it, or at least the Blaze and FlowRouter way. what i’d love to do, instead, is put in a hook in the routing, detect the lack of role, and route them to a registration page. this seems to be Not The FlowRouter way.
am i correct in my assessment that i’m doing it the intended way? or is there an acceptable way to do the interrupt? do the answers change if we eventually migrate away from Blaze, and to either Angular or React?