mirror of
https://github.com/outline/outline.git
synced 2026-06-13 03:14:59 +03:00
wip logging domain
This commit is contained in:
@@ -44,6 +44,12 @@ router.get('slack.callback', auth({ required: false }), async ctx => {
|
||||
ctx.assertPresent(code || error, 'code is required');
|
||||
ctx.assertPresent(state, 'state is required');
|
||||
|
||||
console.log('>>>>>>>>>>>>>>>>>>>>>>>');
|
||||
console.log('STATE: ', state);
|
||||
console.log('<<<<<<<<<<<<<<<<<<<<<<<');
|
||||
console.log('COOK STATE: ', ctx.cookies.get('state'));
|
||||
console.log('<<<<<<<<<<<<<<<<<<<<<<<');
|
||||
|
||||
if (state !== ctx.cookies.get('state')) {
|
||||
ctx.redirect('/?notice=auth-error&error=state_mismatch');
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user