MCPcopy Create free account
hub / github.com/error311/FileRise / consumeAuthFileLinkReturnUrl

Function consumeAuthFileLinkReturnUrl

public/js/main.js:162–172  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160}
161
162function consumeAuthFileLinkReturnUrl() {
163 try {
164 const raw = sessionStorage.getItem(AUTH_FILE_LINK_RETURN_KEY) || '';
165 sessionStorage.removeItem(AUTH_FILE_LINK_RETURN_KEY);
166 if (!raw) return '';
167 const safe = sanitizeRedirect(raw, { fallback: null });
168 return safe || '';
169 } catch (e) {
170 return '';
171 }
172}
173
174function maybeRestoreAuthFileLinkReturnUrl() {
175 const target = consumeAuthFileLinkReturnUrl();

Callers 1

Calls 1

sanitizeRedirectFunction · 0.70

Tested by

no test coverage detected