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.
1 Reply
Zax71
Zax71OP5mo ago
I found a talk on the theory behind OpenID connect and now I understand the concept. I haven't had time to mess around with the crate much since then and it seems like I don't need the frontend oauth lib
Want results from more Discord servers?
Add your server