Created
March 27, 2017 03:55
-
-
Save toddzebert/5d279f8a2104bef103273e5177ae3599 to your computer and use it in GitHub Desktop.
getAuth code for use with simAsync.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// requires https://gist.github.com/toddzebert/996e297c1c081d19378eaf5f29dc75bb | |
var getAuth = function(data) { | |
// create a closure | |
const auth = function () { | |
data.auth = "Authorized"; return data; | |
}; | |
return simAsync(auth); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment