fix companion oidc url (#25572)

This commit is contained in:
Volnei Munhoz
2025-12-03 19:38:41 +00:00
committed by GitHub
parent ad416ac9df
commit 2fc1078158
+5 -8
View File
@@ -1,10 +1,9 @@
/// <reference types="chrome" />
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<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 {