Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
82472c7
1
Parent(s):
b021a2a
damn
Browse files
src/app/state/userCurrentUser.ts
CHANGED
@@ -102,9 +102,17 @@ export function useCurrentUser({
|
|
102 |
const main = async (isLoginRequired: boolean) => {
|
103 |
|
104 |
console.log("useCurrentUser()")
|
|
|
105 |
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
try {
|
107 |
const res = await oauthHandleRedirectIfPresent()
|
|
|
108 |
if (res) {
|
109 |
console.log("useCurrentUser(): we just received an oauth login!")
|
110 |
setOauthResult(res)
|
|
|
102 |
const main = async (isLoginRequired: boolean) => {
|
103 |
|
104 |
console.log("useCurrentUser()")
|
105 |
+
const searchParams = new URLSearchParams(window.location.search);
|
106 |
|
107 |
+
|
108 |
+
console.log("debug:", {
|
109 |
+
"window.location.search:": window.location.search,
|
110 |
+
searchParams,
|
111 |
+
})
|
112 |
+
|
113 |
try {
|
114 |
const res = await oauthHandleRedirectIfPresent()
|
115 |
+
console.log("result of oauthHandleRedirectIfPresent:", res)
|
116 |
if (res) {
|
117 |
console.log("useCurrentUser(): we just received an oauth login!")
|
118 |
setOauthResult(res)
|