@atlaskit/util-service-support
Version:
A library of support classes for integrating React components with REST HTTP services
28 lines (24 loc) • 680 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.buildCredentials = void 0;
/**
* Defines a typical Resource.
*
* Q = query type
* R = result type
* E = error type
* I = info type
* O = options that filter can accept
*/
var buildCredentials = exports.buildCredentials = function buildCredentials(secOptions) {
return secOptions && secOptions.omitCredentials ? 'omit' : 'include';
};
/**
* Returns a promise to a SecurityOptions that has just been forcibly refreshed with a
* new token. Will be used for single retry per request if a 401 is returned.
*/
/**
* Returns the current SecurityOptions for the mentions service.
*/