jbilcke-hf HF staff commited on
Commit
faf4681
1 Parent(s): c65fd94
Files changed (1) hide show
  1. src/app/state/useCurrentUser.ts +2 -1
src/app/state/useCurrentUser.ts CHANGED
@@ -107,11 +107,12 @@ export function useCurrentUser({
107
  "huggingface.co:oauth:nonce",
108
  localStorage.getItem("aitube.at:oauth:nonce") || ""
109
  )
110
- localStorage.removeItem("aitube.at:oauth:code_verifier")
111
  localStorage.setItem(
112
  "huggingface.co:oauth:code_verifier",
113
  localStorage.getItem("aitube.at:oauth:code_verifier") || ""
114
  )
 
115
  } catch (err) {
116
  console.log("no pending oauth flow to finish")
117
  }
 
107
  "huggingface.co:oauth:nonce",
108
  localStorage.getItem("aitube.at:oauth:nonce") || ""
109
  )
110
+ // localStorage.removeItem("aitube.at:oauth:nonce")
111
  localStorage.setItem(
112
  "huggingface.co:oauth:code_verifier",
113
  localStorage.getItem("aitube.at:oauth:code_verifier") || ""
114
  )
115
+ // localStorage.removeItem("aitube.at:oauth:code_verifier")
116
  } catch (err) {
117
  console.log("no pending oauth flow to finish")
118
  }