Skip to content

Commit 8c1dc2c

Browse files
author
gdauber1
committed
init
1 parent 5109073 commit 8c1dc2c

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/modules/auth.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,13 @@ export function createAuthModule(
2222
},
2323
/**
2424
* Get current user sso access token
25+
* @param {string} [userid] - Optional user ID to include as URL parameter
2526
* @returns {Promise<Object>} Current user sso access_token
2627
*/
27-
async getSsoAccessToken() {
28-
return axios.get(`/apps/${appId}/auth/sso/accesstoken`);
28+
async getSsoAccessToken(userid?: string) {
29+
const url = `/apps/${appId}/auth/sso/accesstoken`;
30+
const params = userid ? { userid } : {};
31+
return axios.get(url, { params });
2932
},
3033

3134
/**

0 commit comments

Comments
 (0)