Skip to content

Commit 2fc1078

Browse files
authored
fix companion oidc url (calcom#25572)
1 parent ad416ac commit 2fc1078

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

companion/services/oauthService.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
/// <reference types="chrome" />
2-
2+
import { fromByteArray } from "base64-js";
33
import * as AuthSession from "expo-auth-session";
4-
import * as WebBrowser from "expo-web-browser";
54
import * as Crypto from "expo-crypto";
5+
import * as WebBrowser from "expo-web-browser";
66
import { Platform } from "react-native";
7-
import { fromByteArray } from "base64-js";
87

98
// Complete warm up for WebBrowser on mobile
109
WebBrowser.maybeCompleteAuthSession();
@@ -292,9 +291,7 @@ export class CalComOAuthService {
292291

293292
private async getDiscoveryEndpoints(): Promise<AuthSession.DiscoveryDocument> {
294293
try {
295-
const discovery = await AuthSession.fetchDiscoveryAsync(
296-
`${this.config.calcomBaseUrl}/.well-known/openid_configuration`
297-
);
294+
const discovery = await AuthSession.fetchDiscoveryAsync(this.config.calcomBaseUrl);
298295
return discovery;
299296
} catch {
300297
return {

0 commit comments

Comments
 (0)