Thanks for the very nice explanation. I got step 2 to work, and also got a custom token back to my Tauri frontend. However, if I try to signInWithCustomToken(auth, token), I get CORS isues. This is because I have to run auth = getAuth(app), and this fails after Tauri build. How to fix?