-
Notifications
You must be signed in to change notification settings - Fork 117
createJWT throws 'secret must provided' #437
Comments
@whollacsek please show your config and let us know the version numbers of the auth plugins used. |
Looking at the source code of |
@whollacsek You config should look something similar to this:
|
@Mattchewone I didn't know it's necessary to setup |
I may be leading you down the wrong path @whollacsek I was reading the v1 docs - https://github.com/feathersjs/feathers-authentication/tree/master If you are not using that then you can ignore my comment. |
@Mattchewone I'm on v1, but the doc doesn't talk about setting |
@whollacsek The strategies is just a preference for doing this:
Looking at the authenticate init method strategies are not being used, I guess as each strategy needs to be initialised separately. Do you have your config and your authenticate configuration? |
The docs are wrong. |
The doc says
app.passport.createJWT(payload, options)
will pull from config automatically, but I'm gettingsecret must provided
error when callingapp.passport.createJWT(payload)
The text was updated successfully, but these errors were encountered: