@openpass/openpass-js-sdk
Version:
OpenPass SSO JavaScript SDK
12 lines • 420 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isAuthCodeValid = void 0;
function isAuthCodeValid(response, authSession) {
const hasCodeAndStateParams = response.code && response.state;
if (!hasCodeAndStateParams) {
return false;
}
return authSession.state === response.state;
}
exports.isAuthCodeValid = isAuthCodeValid;
//# sourceMappingURL=authCode.js.map