Skip to content

Instantly share code, notes, and snippets.

@rdegges
Created September 19, 2016 18:30
Show Gist options
  • Save rdegges/8f8da99784cc46d41fc142321a882002 to your computer and use it in GitHub Desktop.
Save rdegges/8f8da99784cc46d41fc142321a882002 to your computer and use it in GitHub Desktop.
express-stormpath-s3 sync file example
app.get('/sync', stormpath.loginRequired, (req, res, next) => {
req.user.syncFiles(err => {
if (err) return next(err);
res.send('files synced!');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment