Skip to content

Commit 0ca9ff9

Browse files
committed
Mirror access token retrieval for ID tokens
1 parent 39c5538 commit 0ca9ff9

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/modules/sso.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,9 @@ export function createSsoModule(
2121
},
2222

2323
// Get the stored SSO OIDC ID token for a specific user
24-
async getIdToken(userid: string): Promise<string> {
24+
async getIdToken(userid: string) {
2525
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;
26+
return axios.get(url);
3027
},
3128
};
3229
}

0 commit comments

Comments
 (0)