There was an error while loading. Please reload this page.
1 parent 39c5538 commit 0ca9ff9Copy full SHA for 0ca9ff9
1 file changed
src/modules/sso.ts
@@ -21,12 +21,9 @@ export function createSsoModule(
21
},
22
23
// Get the stored SSO OIDC ID token for a specific user
24
- async getIdToken(userid: string): Promise<string> {
+ async getIdToken(userid: string) {
25
const url = `/apps/${appId}/auth/sso/idtoken/${userid}`;
26
- const response = await axios.get<string>(url);
27
- // The configured response interceptor unwraps response.data at runtime,
28
- // while AxiosInstance retains AxiosResponse typings.
29
- return response as unknown as string;
+ return axios.get(url);
30
31
};
32
}
0 commit comments