Skip to content

Commit

Permalink
temp: include more debug info for azure troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
zleyyij committed Jun 22, 2024
1 parent 3e1a577 commit 7dfc145
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions backend/src/handlers_prelude/oauth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7dfc145

Please sign in to comment.