Skip to content

Instantly share code, notes, and snippets.

View turkerali's full-sized avatar

Ali Erturk TURKER turkerali

View GitHub Profile
@havvg
havvg / Firewall.js
Last active March 1, 2024 11:52
ExtJS 6: JSON Web Token API Login with Promises
Ext.define('App.security.Firewall', {
singleton: true,
requires: [
'App.security.TokenStorage'
],
isLoggedIn: function() {
return null !== App.security.TokenStorage.retrieve();
},