-
Notifications
You must be signed in to change notification settings - Fork 0
/
CallbackPage.bundle.3b90b2ed1e612254fd2d.js.map
1 lines (1 loc) · 1.64 KB
/
CallbackPage.bundle.3b90b2ed1e612254fd2d.js.map
1
{"version":3,"sources":["webpack:///./routes/CallbackPage.js"],"names":["CallbackPage","userManager","this","props","successCallback","JSON","parse","sessionStorage","getItem","pathname","search","history","push","errorCallback","error","Error","Component","PropTypes","object","isRequired","withRouter"],"mappings":"u8BAKMA,E,wcAMK,WACP,OACE,kBAAC,oBAAD,CACEC,YAAaC,KAAKC,MAAMF,YACxBG,gBAAiB,WAAM,MACaC,KAAKC,MACrCC,eAAeC,QAAQ,qBADjBC,EADa,EACbA,SADa,IACHC,cADG,MACM,GADN,EAKrB,EAAKP,MAAMQ,QAAQC,KAAK,CAAEH,WAAUC,YAEtCG,cAAe,SAAAC,GAEb,MAAM,IAAIC,MAAMD,KAGlB,qD,8BAtBmBE,a,EAArBhB,E,gBACe,CACjBC,YAAagB,IAAUC,OAAOC,WAC9BR,QAASM,IAAUC,OAAOC,Y,6FAyBfC,sBAAWpB","file":"CallbackPage.bundle.3b90b2ed1e612254fd2d.js","sourcesContent":["import React, { Component } from 'react';\nimport { withRouter } from 'react-router-dom';\nimport PropTypes from 'prop-types';\nimport { CallbackComponent } from 'redux-oidc';\n\nclass CallbackPage extends Component {\n static propTypes = {\n userManager: PropTypes.object.isRequired,\n history: PropTypes.object.isRequired,\n };\n\n render() {\n return (\n <CallbackComponent\n userManager={this.props.userManager}\n successCallback={() => {\n const { pathname, search = '' } = JSON.parse(\n sessionStorage.getItem('ohif-redirect-to')\n );\n\n this.props.history.push({ pathname, search });\n }}\n errorCallback={error => {\n //this.props.history.push(\"/\");\n throw new Error(error);\n }}\n >\n <div>Redirecting...</div>\n </CallbackComponent>\n );\n }\n}\n\nexport default withRouter(CallbackPage);\n"],"sourceRoot":""}