Skip to content
Closed

soo #21

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/modules/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ export function createAuthModule(
},
/**
* Get current user sso access token
* @param {string} userid - User ID to include as path parameter
* @returns {Promise<Object>} Current user sso access_token
*/
async getSsoAccessToken() {
return axios.get(`/apps/${appId}/auth/sso/accesstoken`);
async getSsoAccessToken(userid: string) {
const url = `/apps/${appId}/auth/sso/accesstoken/${userid}`;
return axios.get(url);
},

/**
Expand Down