We have used the following 2 codes snippets in our custom screen security condition, within the app settings of two different apps. I’m wondering if there is one that is better? Which one should we be using?
var loginSSO = #####;
var loginEmail = ####;
var isAllowed =
(session && session.entries && session.entries.dataSource) ||
(session && session.entries && session.entries.saml2) ||
( page.id === loginSSO ||
page.id === loginEmail);
if (page.id !== loginSSO && !isAllowed) {
error = true;
navigate = { action: ‘screen’, page: loginSSO, transition: ‘slide.left’ };
}
var loginSSO = ####;
var IoginEmail = ####;
var isAllowed =
(session && session.entries && session.entries.dataSource) ||
(session && session.entries && session.entries.saml2) ||
(page.id === loginSSO ||
page.id === IoginEmail);
if (!isAllowed) {
error = true;
navigate = { action: ‘screen’, page: loginSSO, transition: ‘slide.left’ };
}