WebAPI.getProfileURL: Use profileKeyVersion by itself if we have it
This commit is contained in:
parent
6a68b37c83
commit
0fee1f9935
1 changed files with 7 additions and 2 deletions
|
@ -914,11 +914,16 @@ export function initialize({
|
||||||
profileKeyVersion?: string,
|
profileKeyVersion?: string,
|
||||||
profileKeyCredentialRequest?: string
|
profileKeyCredentialRequest?: string
|
||||||
) {
|
) {
|
||||||
|
let profileUrl = `/${identifier}`;
|
||||||
|
|
||||||
|
if (profileKeyVersion) {
|
||||||
|
profileUrl += `/${profileKeyVersion}`;
|
||||||
|
}
|
||||||
if (profileKeyVersion && profileKeyCredentialRequest) {
|
if (profileKeyVersion && profileKeyCredentialRequest) {
|
||||||
return `/${identifier}/${profileKeyVersion}/${profileKeyCredentialRequest}`;
|
profileUrl += `/${profileKeyCredentialRequest}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
return `/${identifier}`;
|
return profileUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getProfile(
|
async function getProfile(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue