Skip to content

Instantly share code, notes, and snippets.

@snewell92
Last active July 7, 2017 19:38
Show Gist options
  • Save snewell92/baa4645ded72a6532fbebafc27b601f4 to your computer and use it in GitHub Desktop.
Save snewell92/baa4645ded72a6532fbebafc27b601f4 to your computer and use it in GitHub Desktop.
authentication options
"authentication": {
"secret": "somereallylongstring",
"strategies": [
"local",
"jwt"
],
"path": "/authentication",
"service": "users",
"entity": "user",
"passReqToCallback": true,
"jwt": {
"header": {
"type": "access"
},
"entity": "user",
"audience": "localhost",
"subject": "anonymous",
"issuer": "feathers",
"algorithm": "HS256",
"expiresIn": "1d"
},
"local": {
"service": "users",
"usernameField": "\\username",
"passwordField": "password",
"entity": "user"
},
"session": false,
"cookie": {
"secret": "84cfd5a24e6ee18782297065c8d1b684912ec53c5ef7ab66e524b43348b06088",
"enabled": true,
"name": "jwt-cookie",
"secure": false,
"httpOnly": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment