UNPKG

@openpass/openpass-js-sdk

Version:
12 lines 420 B
"use strict"; 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