mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Set auth token cookie on success login
This commit is contained in:
parent
8b072ab094
commit
3c442c06ba
1 changed files with 2 additions and 1 deletions
|
|
@ -19,7 +19,6 @@ import express from 'express'
|
|||
import axios from 'axios'
|
||||
import { env } from '../../env'
|
||||
import url from 'url'
|
||||
import { IntercomClient } from '../../utils/intercom'
|
||||
import { kx } from '../../datalayer/knex_config'
|
||||
import UserModel from '../../datalayer/user'
|
||||
import { buildLogger } from '../../utils/logger'
|
||||
|
|
@ -356,6 +355,8 @@ export function authRouter() {
|
|||
redirectUri = ssoRedirectURL(ssoToken)
|
||||
}
|
||||
|
||||
await setAuthInCookie({ uid: user.id }, res)
|
||||
|
||||
return res.redirect(redirectUri)
|
||||
} catch (error) {
|
||||
logger.info('handleSuccessfulLogin exception:', error)
|
||||
|
|
|
|||
Loading…
Reference in a new issue