fix: refactor imgur bearer.
This commit is contained in:
parent
a55f49d5a2
commit
038b26ab7e
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user