Modulo makers3d desarrollado con codex V 0.0.1
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
"use client";
|
||||
|
||||
import { browserApiBase } from "./api";
|
||||
import { notifyAuthChanged } from "./authEvents";
|
||||
|
||||
export function logoutByNavigation(redirectTo = "/login") {
|
||||
notifyAuthChanged("logout");
|
||||
window.location.assign(`${browserApiBase}/auth/logout?redirect=${encodeURIComponent(redirectTo)}`);
|
||||
}
|
||||
Reference in New Issue
Block a user