Created
July 8, 2016 21:24
-
-
Save gaboelnuevo/b345216a9ec2fe57d852511e437e39f0 to your computer and use it in GitHub Desktop.
Loopback user literal
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
// server/boot/authentication.js | |
server.middleware('auth', loopback.token({ | |
model: server.models.accessToken, | |
currentUserLiteral: 'me' | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment