Skip to content

Commit d76bcc9

Browse files
authored
fix: bring back canary.firefly.social origins (#12311)
1 parent a5b3212 commit d76bcc9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/mask/background/services/helper/oauth-x.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,10 @@ export async function requestXOAuthToken() {
187187
await requestExtensionPermissionFromContentScript({
188188
origins: XOAuthRequestOrigins,
189189
})
190-
await fetch('https://firefly.social/api/mask/delegate-x-token')
190+
await Promise.all([
191+
fetch('https://firefly.social/api/mask/delegate-x-token'),
192+
fetch('https://canary.firefly.social/api/mask/delegate-x-token'),
193+
])
191194
const step1 = await getRequestToken(client)
192195
const step1_oauth_token = step1.get('oauth_token')
193196
pendingOAuth = Promise.withResolvers()

packages/mask/shared/definitions/extension.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ export const XOAuthRequestOrigins: string[] = [
1313
// In order to run content script on it
1414
'https://firefly.social/api/mask/delegate-x-token',
1515
'https://firefly.social/api/auth/callback/twitter',
16+
'https://canary.firefly.social/api/mask/delegate-x-token',
17+
'https://canary.firefly.social/api/auth/callback/twitter',
1618
]

0 commit comments

Comments
 (0)