diff --git a/packages/mask/background/services/helper/oauth-x.ts b/packages/mask/background/services/helper/oauth-x.ts index 5ad60bf1d1f..d970606ed00 100644 --- a/packages/mask/background/services/helper/oauth-x.ts +++ b/packages/mask/background/services/helper/oauth-x.ts @@ -187,7 +187,10 @@ export async function requestXOAuthToken() { await requestExtensionPermissionFromContentScript({ origins: XOAuthRequestOrigins, }) - await fetch('https://firefly.social/api/mask/delegate-x-token') + await Promise.all([ + fetch('https://firefly.social/api/mask/delegate-x-token'), + fetch('https://canary.firefly.social/api/mask/delegate-x-token'), + ]) const step1 = await getRequestToken(client) const step1_oauth_token = step1.get('oauth_token') pendingOAuth = Promise.withResolvers() diff --git a/packages/mask/shared/definitions/extension.ts b/packages/mask/shared/definitions/extension.ts index b16f00ab9ab..0b4eb3fa590 100644 --- a/packages/mask/shared/definitions/extension.ts +++ b/packages/mask/shared/definitions/extension.ts @@ -13,4 +13,6 @@ export const XOAuthRequestOrigins: string[] = [ // In order to run content script on it 'https://firefly.social/api/mask/delegate-x-token', 'https://firefly.social/api/auth/callback/twitter', + 'https://canary.firefly.social/api/mask/delegate-x-token', + 'https://canary.firefly.social/api/auth/callback/twitter', ]