UNPKG

@openpass/openpass-js-sdk

Version:
8 lines 273 B
export function isAuthCodeValid(response, authSession) { const hasCodeAndStateParams = response.code && response.state; if (!hasCodeAndStateParams) { return false; } return authSession.state === response.state; } //# sourceMappingURL=authCode.js.map