Skip to content

Instantly share code, notes, and snippets.

View sseyha's full-sized avatar

Seyha sseyha

  • Self Company
  • Phnom Penh, Cambodia
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();
},