Files
Erik Krogh Kristensen 6732493377 add model for jwt-decode
2020-11-10 10:41:36 +01:00

8 lines
244 B
JavaScript

import jwt_decode from "jwt-decode";
import $ from "jquery"
$.post(loginUrl(), {data: "foo"}, (data, xhr) => {
var decoded = jwt_decode(data);
$.jGrowl(decoded); // NOT OK - but only flagged with additional sources [INCONSISTENCY]
});