Skip to content

Commit 21e3a75

Browse files
UID2 Shared library: Update Optout token to be consistent between UID2 and EUID (prebid#14086)
* added log errors to catch the errors * fixed lint errors * making stored optout consistent between uid2 and euid * remove log error * add empty catch statements * made code more consistent
1 parent 285d9ba commit 21e3a75

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

libraries/uid2IdSystemShared/uid2IdSystem_shared.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export class Uid2ApiClient {
4444
ResponseToRefreshResult(response) {
4545
if (this.isValidRefreshResponse(response)) {
4646
if (response.status === 'success') { return { status: response.status, identity: response.body }; }
47+
if (response.status === 'optout') { return { status: response.status, identity: 'optout' }; }
4748
return response;
4849
} else { return prependMessage(`Response didn't contain a valid status`); }
4950
}

0 commit comments

Comments
 (0)