Skip to content

Commit

Permalink
Merge pull request #79 from Zimbra/PREAPPS-934
Browse files Browse the repository at this point in the history
PREAPPS-934: Login error "An unknown error occurred"; Zimbra X login seems to require almost daily cache clearing
  • Loading branch information
pl12133 authored Oct 18, 2018
2 parents ed22b36 + 016e36e commit 7cee86e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/request/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,10 @@ export function jsonRequest(
let header: SOAPHeader;
header = {
context: {
_jsns: Namespace.All
_jsns: Namespace.All,
authTokenControl: {
voidOnExpired: true
}
}
};

Expand Down
3 changes: 3 additions & 0 deletions src/request/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ export interface SOAPHeader {
_content: string;
by: 'name' | 'id'; // name is the account's email address
};
authTokenControl?: {
voidOnExpired: boolean;
};
csrfToken?: string;
jwtToken?: {
_content: string;
Expand Down

0 comments on commit 7cee86e

Please sign in to comment.