Nope, tried messing with code bits, but nothing helps
in console im also getting following errors:
‘’‘Uncaught SyntaxError: Invalid or unexpected token
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘email’)
at preview?auth_token=eu–session–2cd6320c6118e69314d753b0398206dc-498-152-1212&interact=false&disableSecurity:1555’’’
Any other ideas what can be causing this issue? Without being able to retrieve username while logging in with SSO, the whole point of my app becomes redundant.
INteresting, when i try your sugestion either exactly as you submitted or with saml2.data it just returns undefined. but when I do console.log(user); I actually get the object as shown in the above screenshot
Fliplet.User.getCachedSession().then(function (session) {
var user = _.get(session, 'entries.saml2.user');
if (!user) {
return; // user is not logged in with saml2
}
// user contains "firstName", "lastName" and "email"
// create a welcome string
var text = `You are signed in as ${user.email}.`;
// display it in a html element with class "welcome"
$('.welcome').text(text);
});
Anything really. I find Fliplet, as a framework/solution to be great and have massive potential, however, as soon as i need to customize something and using simple html/CSS/JS doesn’t work, searching through knowledgebase and documentation is just painful. thing always seem to be only half explained and often fragmented. Then again, it might just be me.