Skip to content

Instantly share code, notes, and snippets.

View Rassilion's full-sized avatar

Deniz Rassilion

  • Lemonsoft
  • Izmir, Turkey
View GitHub Profile
@FilipBartos
FilipBartos / axios-response-interceptor.js
Last active April 11, 2024 07:03
Axios response interceptor for access token refresh supporting 1 to N async requests
let isAlreadyFetchingAccessToken = false
let subscribers = []
function onAccessTokenFetched(access_token) {
subscribers = subscribers.filter(callback => callback(access_token))
}
function addSubscriber(callback) {
subscribers.push(callback)
}
@DraTeots
DraTeots / ComPort over Network.md
Last active November 15, 2024 13:34
ComPort over Network