juampi92 / adonis-mongoose-model

Mongoose models for Adonis framework.
MIT License
62 stars 17 forks source link

error when authenticate with JWT or API token in web socket #58

Open gasner opened 4 years ago

gasner commented 4 years ago

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.

CarlosGabrieLuna commented 3 years ago

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