MCPcopy Create free account
hub / github.com/coderwhy/coderhub /

Class

src/controller/auth.controller.js:4–4  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2const { PRIVATE_KEY } = require('../app/config');
3
4class AuthController {
5 async login(ctx, next) {
6 const { id, name } = ctx.user;
7 const token = jwt.sign({ id, name }, PRIVATE_KEY, {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected