Skip to content

Instantly share code, notes, and snippets.

@gaboelnuevo
Created July 8, 2016 21:24
Show Gist options
  • Save gaboelnuevo/b345216a9ec2fe57d852511e437e39f0 to your computer and use it in GitHub Desktop.
Save gaboelnuevo/b345216a9ec2fe57d852511e437e39f0 to your computer and use it in GitHub Desktop.
Loopback user literal
// 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