Skip to content
Merged
Show file tree
Hide file tree
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
14 changes: 8 additions & 6 deletions src/endpoints/user-authentication-password-profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ class UserAuthenticationPasswordProfileEndpoint extends CRUDExtend {
userAuthenticationInfoId,
userAuthenticationPasswordProfileId,
body,
accountManagementAuthenticationToken,
token = null
token = null,
accountManagementAuthenticationToken = null
) {
return this.request.send(
`${this.endpoint
Expand All @@ -79,10 +79,12 @@ class UserAuthenticationPasswordProfileEndpoint extends CRUDExtend {
this,
true,
'v2',
{
'EP-Account-Management-Authentication-Token':
accountManagementAuthenticationToken
}
accountManagementAuthenticationToken
? {
'EP-Account-Management-Authentication-Token':
accountManagementAuthenticationToken
}
: {}
)
}

Expand Down
4 changes: 2 additions & 2 deletions src/types/user-authentication-password-profile.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ export interface UserAuthenticationPasswordProfileEndpoint {
userAuthenticationInfoId: string,
userAuthenticationPasswordProfileId: string,
body: { data: UserAuthenticationPasswordProfileUpdateBody },
accountManagementAuthenticationToken: string,
token?: string
token?: string | null,
accountManagementAuthenticationToken?: string | null
): Promise<UserAuthenticationPasswordProfileResponse>

/**
Expand Down
1 change: 1 addition & 0 deletions test/unit/user-authentication-password-profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ describe('User Authentication Password Profile Info', () => {
{
data: body
},
null,
'dummy-token'
).then(res => {
assert.isObject(res)
Expand Down