You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

10 lines
256 B

exports.parse = function(json) {
var context = {};
if (json.auth_time) {
context.timestamp = new Date(json.auth_time * 1000);
}
if (json.acr) { context.class = json.acr; }
if (json.amr) { context.methods = json.amr; }
return context;
};