fix(route/twitter): Web API authentication (#12754)

This commit is contained in:
Rongrong
2023-07-05 01:24:09 +08:00
committed by GitHub
parent a8058f2921
commit 7e45fe12e9
9 changed files with 104 additions and 21 deletions

View File

@@ -277,8 +277,7 @@ const calculateValue = () => {
consumer_key: envs.TWITTER_CONSUMER_KEY,
consumer_secret: envs.TWITTER_CONSUMER_SECRET,
tokens: twitter_tokens,
authorization: envs.TWITTER_WEBAPI_AUTHORIZAION || 'Bearer AAAAAAAAAAAAAAAAAAAAAPYXBAAAAAAACLXUNDekMxqa8h%2F40K4moUkGsoc%3DTYfbDKbT3jJPCEVnMYqilB28NHfOPqkca3qaAxGfsyKCs0wRbw',
// reference: https://github.com/dangeredwolf/FixTweet/blob/f3082bbb0d69798687481a605f6760b2eb7558e0/src/constants.ts#L23-L25
authorization: envs.TWITTER_WEBAPI_AUTHORIZAION && envs.TWITTER_WEBAPI_AUTHORIZAION.split(','),
},
weibo: {
app_key: envs.WEIBO_APP_KEY,