There is a lot of code in init_oauth_router that has nothing to do with FastAPI and therefore should moved to another module or modules.
Lines 77 to 102 could be something like process_install_callback (Maybe something better?)
Similarly we should have a process_login_callback (Maybe something better?) with both process_*_callback functions using a function process_callback for line 77 to 87
There is a lot of code in
init_oauth_router
that has nothing to do with FastAPI and therefore should moved to another module or modules.process_install_callback
(Maybe something better?)process_login_callback
(Maybe something better?) with bothprocess_*_callback
functions using a functionprocess_callback
for line 77 to 87