···210210 );
211211 return;
212212 }
213213+ // what url are we at?
214214+ const url = new URL(window.location.href);
215215+ // store it in local storage, with the timestamp
216216+ localStorage.setItem("previousUrl", `${url.toString()}:${Date.now()}`);
213217 const resolved = await this.resolveHandle(did);
214218 let oauth = await this.getOAuthRedirectUri(resolved);
215219 // log out before we redirect