Skip to content

Instantly share code, notes, and snippets.

juayhi juayhi

  • Barcelona
Block or report user

Report or block juayhi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@javisperez
javisperez / interceptors.js
Last active Sep 14, 2019
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
yosriady / DESIGN.md
Last active Jun 10, 2019
OAuth2 Authentication Microservices Design
View DESIGN.md

Auth

Disclaimer

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.

Introduction

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

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