fix onboarding cache and remove the stupid renovate stuff
This commit is contained in:
@@ -159,7 +159,10 @@ if (host) {
|
||||
|
||||
async function loadCurrentUser() {
|
||||
try {
|
||||
const res = await fetch("/api/auth/me", { credentials: "include" });
|
||||
const res = await fetch("/api/auth/me", {
|
||||
credentials: "include",
|
||||
cache: "no-store",
|
||||
});
|
||||
if (!res.ok) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -119,6 +119,7 @@ export function showOnboardingIfNeeded(user) {
|
||||
const response = await fetch("/api/auth/onboarding/complete", {
|
||||
method: "POST",
|
||||
credentials: "include",
|
||||
cache: "no-store",
|
||||
});
|
||||
if (!response.ok) throw new Error("Could not save your onboarding status.");
|
||||
overlay.remove();
|
||||
|
||||
Reference in New Issue
Block a user