Created
May 21, 2018 05:56
-
-
Save DavidOndrus/460ee8c97331907f8d2e05b024fb97a4 to your computer and use it in GitHub Desktop.
waterwheel.js policy
This file contains 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
if (req.session.tokenInformation && req.session.tokenExpireTime) { | |
const config = _.cloneDeep(sails.config.waterwheel); | |
config.oauth = _.cloneDeep(req.session.tokenInformation); | |
config.oauth.tokenExpireTime = req.session.tokenExpireTime; | |
req.waterwheel = new Waterwheel(config); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment