Skip to content
Snippets Groups Projects
Commit 54e21ffc authored by Yogmatee Roochun's avatar Yogmatee Roochun
Browse files

timeout after logging

parent f6acf4cd
No related branches found
No related tags found
3 merge requests!380Pipeline changes,!379Build step added for the master branch,!378k8s release
......@@ -237,16 +237,14 @@ class OrcidClaim extends React.Component {
thorApplicationNamespace.addWork()
}
loginToOrcid = () => {
loginToOrcid = async () => {
thorApplicationNamespace.notifyClientApp(
thorApplicationNamespace.notify.loginClick,
)
await new Promise(done => setTimeout(() => console.log("after notifyClientApp..."), 300000))
const url = thorApplicationNamespace.getLoginUrl()
window.open(url, 'ORCID')
window.setTimeout(
() => console.log("Timeout for loginToOrcid"),
300000,
)
await new Promise(done => setTimeout(() => console.log("after getLoginUrl..."), 300000))
}
logoutFromOrcid = () => {
......@@ -291,9 +289,9 @@ class OrcidClaim extends React.Component {
return (
<ShowComponent
isLoading={this.state.isLoading}
onClick={() => {
onClick={async () => {
try {
this.loginToOrcid()
await this.loginToOrcid()
} catch (e) {
this.callErrorCallbackIfRequired(false, e)
throw e
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment