From 2fc10781585b40f3b96e7dac2fc504e5fb0507c7 Mon Sep 17 00:00:00 2001 From: Volnei Munhoz Date: Wed, 3 Dec 2025 16:38:41 -0300 Subject: [PATCH] fix companion oidc url (#25572) --- companion/services/oauthService.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/companion/services/oauthService.ts b/companion/services/oauthService.ts index 40d68757e5..180b6c1b1e 100644 --- a/companion/services/oauthService.ts +++ b/companion/services/oauthService.ts @@ -1,10 +1,9 @@ /// - -import * as AuthSession from "expo-auth-session"; -import * as WebBrowser from "expo-web-browser"; -import * as Crypto from "expo-crypto"; -import { Platform } from "react-native"; import { fromByteArray } from "base64-js"; +import * as AuthSession from "expo-auth-session"; +import * as Crypto from "expo-crypto"; +import * as WebBrowser from "expo-web-browser"; +import { Platform } from "react-native"; // Complete warm up for WebBrowser on mobile WebBrowser.maybeCompleteAuthSession(); @@ -292,9 +291,7 @@ export class CalComOAuthService { private async getDiscoveryEndpoints(): Promise { try { - const discovery = await AuthSession.fetchDiscoveryAsync( - `${this.config.calcomBaseUrl}/.well-known/openid_configuration` - ); + const discovery = await AuthSession.fetchDiscoveryAsync(this.config.calcomBaseUrl); return discovery; } catch { return {