[FA-misc] Switches to using DTOs, updates frontend with details and reader page, updates novel import to be an upsert
This commit is contained in:
@@ -52,6 +52,10 @@ export async function initAuth() {
|
||||
user.set(result ?? null);
|
||||
if (result) {
|
||||
setCookieFromUser(result);
|
||||
// Reload to let server see the new cookie
|
||||
const cleanUrl = `${url.origin}${url.pathname}`;
|
||||
window.location.href = cleanUrl;
|
||||
return;
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('Failed to complete sign-in redirect', e);
|
||||
|
||||
Reference in New Issue
Block a user