wip logging domain

This commit is contained in:
Nan Yu
2020-05-10 11:48:15 -07:00
parent 813d8eb960
commit 6ee095a49e
+1
View File
@@ -49,6 +49,7 @@ router.get('slack.callback', auth({ required: false }), async ctx => {
console.log('<<<<<<<<<<<<<<<<<<<<<<<');
console.log('COOK STATE: ', ctx.cookies.get('state'));
console.log('<<<<<<<<<<<<<<<<<<<<<<<');
console.log('error: ', error);
if (state !== ctx.cookies.get('state')) {
ctx.redirect('/?notice=auth-error&error=state_mismatch');