Rust and Svelte Oauth2 bewilderment

It took me a while to figure out what I am asking here, I think it is: does authjs work on static svelte? And are the rest of my lib decisions applicable to this situation?

I am researching creating a web app that authorises with Google Oauth2 (or some other provider). I plan to use Rust for the backend and a staticly hosted Svelte application for the frontend. For the Rust side of things, I want to use a MongoDB database with it's official driver, Axum for the web framework and OpenIDConnect-rs to handle Oauth on the backend. For the frontend I plan to use AuthJS for oauth.

All in all, I feel like I am severely missunderstanding something seeing how the documentation for all the auth related packages is worded. Would someone be able to show if a static svelte site can work for the frontend (and why not if it can't) as well as how the oauth packages communicate as I feel I must be still missing something even after watching a lot of videos and reading docs.
Was this page helpful?