Closed saminanirmala closed 2 years ago
You're missing quite a chunk of config from your config/auth.ts
. Looks like you copied from adonis4 auth?
It should look like this:
jwt: {
driver: "jwt",
publicKey: Env.get('JWT_PUBLIC_KEY', '').replace(/\\n/g, '\n'),
privateKey: Env.get('JWT_PRIVATE_KEY', '').replace(/\\n/g, '\n'),
persistJwt: false,
jwtDefaultExpire: '10m',
refreshTokenDefaultExpire: '10d',
tokenProvider: {
type: 'api',
driver: 'database',
table: 'jwt_tokens',
foreignKey: 'user_id',
},
provider: {
driver: "lucid",
identifierKey: "id",
uids: [],
model: () => import('App/Models/User'),
},
},
Try to run node ace configure adonis5-jwt
again
I am getting this error and don't know how to resolve this error since my contract auth.ts looks like this
and my config/auth.ts looks like this
Please help me out