mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #1618 from omnivore-app/fix/email-cookie-auth
Use cookie auth instead of header as GCP uses the Authorization header
This commit is contained in:
commit
18b26f9690
2 changed files with 2 additions and 2 deletions
|
|
@ -23,7 +23,7 @@ export function userRouter() {
|
|||
res.status(401).send('UNAUTHORIZED')
|
||||
return
|
||||
}
|
||||
const from = process.env.SENDER_MESSAGE
|
||||
const from = env.sender.message
|
||||
const { body, subject } = req.body as {
|
||||
body?: string
|
||||
subject?: string
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ const createEmailCloudTask = async (userId: string, payload: unknown) => {
|
|||
process.env.JWT_SECRET
|
||||
)) as string
|
||||
const headers = {
|
||||
Authorization: authToken,
|
||||
Cookie: `auth=${authToken}`,
|
||||
}
|
||||
|
||||
return createCloudTask(EMAIL_USER_URL, payload, headers)
|
||||
|
|
|
|||
Loading…
Reference in a new issue