coyotte508 HF staff commited on
Commit
a683de4
1 Parent(s): ac0e923

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +2 -1
index.html CHANGED
@@ -55,7 +55,8 @@
55
  } else {
56
  document.getElementById("signin").style.removeProperty("display");
57
  document.getElementById("signin").onclick = async function() {
58
- window.location.href = await oauthLoginUrl({scopes: window.huggingface.variables.OAUTH_SCOPES});
 
59
  }
60
  }
61
  </script>
 
55
  } else {
56
  document.getElementById("signin").style.removeProperty("display");
57
  document.getElementById("signin").onclick = async function() {
58
+ // prompt=consent to re-trigger the consent screen instead of silently redirecting
59
+ window.location.href = (await oauthLoginUrl({scopes: window.huggingface.variables.OAUTH_SCOPES})) + "&prompt=consent";
60
  }
61
  }
62
  </script>