| 2 | const { PRIVATE_KEY } = require('../app/config'); |
| 3 | |
| 4 | class AuthController { |
| 5 | async login(ctx, next) { |
| 6 | const { id, name } = ctx.user; |
| 7 | const token = jwt.sign({ id, name }, PRIVATE_KEY, { |
nothing calls this directly
no outgoing calls
no test coverage detected