@esri/arcgis-rest-request
Version:
Common methods and utilities for @esri/arcgis-rest-js packages.
14 lines • 489 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getOauthStateId = getOauthStateId;
const generate_random_string_js_1 = require("./generate-random-string.js");
function getOauthStateId(state, win) {
if (typeof state === "string") {
return state;
}
else if (typeof state === "object") {
return state.id;
}
return (0, generate_random_string_js_1.generateRandomString)(win);
}
//# sourceMappingURL=getOauthStateId.js.map