diff --git a/backend/src/handlers_prelude/oauth.rs b/backend/src/handlers_prelude/oauth.rs index ac6a5aba..1cfe58a5 100644 --- a/backend/src/handlers_prelude/oauth.rs +++ b/backend/src/handlers_prelude/oauth.rs @@ -71,14 +71,14 @@ async fn get_oath_processor( ) }; + println!("Redirect url: {redirect_url:?}"); // The obtained token after they authenticate let token_data: oauth2::StandardTokenResponse<_, _> = state .oauth .exchange_code(AuthorizationCode::new(query.code)) .set_redirect_uri(std::borrow::Cow::Owned(RedirectUrl::new(redirect_url)?)) .request_async(async_http_client) - .await - .wrap_err("OAuth token request failed")?; + .await.unwrap(); let token = token_data.access_token().secret(); // Use that token to request user data diff --git a/frontend/src/routes/+page.svelte b/frontend/src/routes/+page.svelte index 012ca7d4..b9250cd8 100644 --- a/frontend/src/routes/+page.svelte +++ b/frontend/src/routes/+page.svelte @@ -57,7 +57,7 @@ let showLoadingIcon: boolean; async function fileSelectionHandler(e: CustomEvent) { - console.log("himom!") + console.log('himom!'); // If the file in cache doesn't differ from the editor or no file is selected, there are no unsaved changes if ((await cache.get(get(currentFile))) === editorText || get(currentFile) === '') { currentFile.set(e.detail.path);