jbilcke-hf HF staff commited on
Commit
daa3cb1
1 Parent(s): 82472c7

investigating issues

Browse files
Files changed (1) hide show
  1. src/app/state/userCurrentUser.ts +6 -0
src/app/state/userCurrentUser.ts CHANGED
@@ -185,6 +185,12 @@ export function useCurrentUser({
185
  state: JSON.stringify({ redirectTo })
186
  })
187
 
 
 
 
 
 
 
188
  window.location.href = oauthUrl
189
  }
190
 
 
185
  state: JSON.stringify({ redirectTo })
186
  })
187
 
188
+ const nonce = localStorage.getItem("huggingface.co:oauth:nonce")
189
+ const codeVerifier = localStorage.getItem("huggingface.co:oauth:code_verifier")
190
+ const hack = JSON.stringify({ nonce, codeVerifier })
191
+ console.log("hack:", hack)
192
+ localStorage.setItem("aitube.at:login", hack)
193
+
194
  window.location.href = oauthUrl
195
  }
196