Scheduling infrastructure for absolutely everyone.
fix companion oidc url (#25572)
Volnei Munhoz2fc10781585b
diff --git a/companion/services/oauthService.ts b/companion/services/oauthService.tsindex 40d68757e58..180b6c1b1ec 100644--- a/companion/services/oauthService.ts+++ b/companion/services/oauthService.ts@@ -1,10 +1,9 @@/// <reference types="chrome" />-+import { fromByteArray } from "base64-js";import * as AuthSession from "expo-auth-session";-import * as WebBrowser from "expo-web-browser";import * as Crypto from "expo-crypto";+import * as WebBrowser from "expo-web-browser";import { Platform } from "react-native";-import { fromByteArray } from "base64-js";// Complete warm up for WebBrowser on mobileWebBrowser.maybeCompleteAuthSession();@@ -292,9 +291,7 @@ export class CalComOAuthService {private async getDiscoveryEndpoints(): Promise<AuthSession.DiscoveryDocument> {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 {