~/back/firebase.ts using env variables for the configuration values.~/routes/api/signin, The POST method executes the signin using firebase auth and redirects to /profile. The GET method returns the current session for fetching./profile page redirects to /signin if there is no user in sessión, and would otherwise display the user's data.~/main.ts. setPersistence(auth, browserLocalPersistence); but it never had any effect on the client.