redirect url

This commit is contained in:
hamid zarghami
2025-04-21 11:50:49 +03:30
parent 6badc5fb31
commit 1e134c1e19
7 changed files with 48 additions and 23 deletions
+5
View File
@@ -58,3 +58,8 @@ export const removeToken = () => {
export const removeRefreshToken = () => {
Cookie.remove(import.meta.env.VITE_REFRESH_TOKEN_NAME, { domain, path: "/" });
};
export const getRedirectUrl = () => {
const urlParams = new URLSearchParams(window.location.search);
return urlParams.get("redirect");
};