Get twitter handle from from SPA

Hey @lukesamkharadze !

You should be able to get the Twitter handle in the user object by adding the screen_name to the ID token via a rule. The following should work:

function (user, context, callback) {

   // context.accessToken.twitter_handle = user.screen_name;
  	context.idToken.twitter_handle = user.screen_name;
  
  	return callback(null, user, context);

}

Hope this helps!