Renames, clear token, show signin options based on env

This commit is contained in:
Tom Moor
2018-05-28 21:14:43 -07:00
parent 72d874444e
commit 25aa1f288b
6 changed files with 92 additions and 77 deletions

View File

@@ -66,7 +66,7 @@ router.get('google.callback', async ctx => {
await team.createFirstCollection(user.id);
}
ctx.cookies.set('lastLoggedIn', 'google', {
ctx.cookies.set('lastSignedIn', 'google', {
httpOnly: false,
expires: new Date('2100'),
});