Team switcher

This commit is contained in:
Tom Moor
2018-11-11 16:24:05 -08:00
parent 10e1f0231c
commit cc9f32cdc9
8 changed files with 107 additions and 26 deletions

View File

@@ -20,7 +20,7 @@ router.use('/', google.routes());
router.get('/redirect', auth(), async ctx => {
const user = ctx.state.user;
// transfer cookie from root to subdomain specific
// transfer access token cookie from root to subdomain
ctx.cookies.set('accessToken', undefined, {
httpOnly: true,
domain: stripSubdomain(ctx.request.hostname),