Skip to content

Instantly share code, notes, and snippets.

juayhi juayhi

  • Barcelona
View GitHub Profile
javisperez / interceptors.js
Last active Jul 7, 2020
Axios interceptor for cache with js-cache
View interceptors.js
// Usually I use this in my app's config file, in case I need to disable all cache from the app
// Cache is from `js-cache`, something like `import Cache from 'js-cache';`
const cacheable = true,
cache = new Cache();
// On request, return the cached version, if any
axios.interceptors.request.use(request => {
// Only cache GET requests
if (request.method === 'get' && cacheable) {
yosriady /
Last active May 21, 2020
OAuth2 Authentication Microservices Design



Creating an OAuth2 server is not a task that should be taken lightly. There are many security loopholes that could be exploited, and regular examinations are critical to handle possible vulnerabilities.


Auth is an authentication microservice based on the OAuth2 identity delegation protocol.

umpirsky / A.markdown
Last active May 9, 2020 — forked from olivierlacan/An_example.markdown
Sublime Text Monokai Sidebar Theme.
View A.markdown
You can’t perform that action at this time.