Optionally configure gmail client secret with env var (#2454)

This commit is contained in:
bobobo1618 2023-04-12 04:47:53 +02:00 committed by GitHub
parent 8ea2a61fed
commit 89047ad768
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,7 @@ export const GMAIL_CLIENT_ID =
// Note: This is not a security risk for the end-user -- it just means someone could "fork" Mailspring and re-use it's
// Client ID and Secret. For now, it seems we're on the honor code - Please don't do this.
//
export const GMAIL_CLIENT_SECRET = crypto
export const GMAIL_CLIENT_SECRET = process.env.MS_GMAIL_CLIENT_SECRET || crypto
.createDecipheriv(
'aes-256-ctr',
"don't-be-ev1l-thanks--mailspring",