juampi92/adonis-mongoose-model

error when authenticate with JWT or API token in web socket

Opened this issue · 1 comments

Hi,
I try to authenticate with JWT or API token in web socket.
and I get this error:
“knex: Required configuration option ‘client’ is missing.”

What is mean?

api: {
    serializer: 'mongoose',
    model: 'App/Models/Player',
    scheme: 'api',
    uid: 'name',
    token: 'App/Models/Token',
    options: {
        secret: Env.get('APP_KEY')
    }
}

I use with adonisjs library

Thank you.

i have the same problem and i can't to save on my database :(, somebody knows a solution?