Cookieを使わないように

This commit is contained in:
syuilo
2018-11-28 16:19:02 +09:00
parent f257853906
commit 4bbb7eded3
5 changed files with 7 additions and 12 deletions

View File

@ -21,6 +21,7 @@ export default function(ctx: Koa.Context, user: ILocalUser, redirect = false) {
ctx.redirect(config.url);
} else {
ctx.status = 204;
ctx.body = { i: user.token };
ctx.status = 200;
}
}