department-of-veterans-affairs/vets-website

View on GitHub
src/platform/utilities/sso/mockKeepAliveSSO.js

Summary

Maintainability
A
0 mins
Test Coverage
import 'url-search-params-polyfill';

export default function keepAlive() {
  const params = new URLSearchParams(window.location.search);
  return Promise.resolve({
    ttl: params.get('keepalive-ttl'),
    authn: params.get('keepalive-authn'),
    // eslint-disable-next-line camelcase
    csp_type: params.get('csp_type'),
  });
}