fix: refactor imgur bearer.

This commit is contained in:
NunoSempere 2022-11-02 11:33:27 +00:00
parent a55f49d5a2
commit 038b26ab7e

View File

@ -5,7 +5,7 @@ export async function uploadToImgur(dataURL: string): Promise<string> {
method: "post", method: "post",
url: "https://api.imgur.com/3/image", url: "https://api.imgur.com/3/image",
headers: { headers: {
Authorization: "Bearer 8e9666fb889318515a62208560d4e8393dac26d8", Authorization: `Bearer ${process.env.IMGUR_BEARER}`,
}, },
data: { data: {
type: "base64", type: "base64",