Skip to content

Commit

Permalink
datafed-ws.js formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Ramirez committed Jan 21, 2025
1 parent 8092e9f commit 9c7ad61
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions web/datafed-ws.js
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,10 @@ app.get("/ui/authn", (a_req, a_resp) => {
"User: " + uid + "not registered",
);

if (token_handler.getTokenType() === AccessTokenType.GLOBUS_TRANSFER) {
if (
token_handler.getTokenType() ===
AccessTokenType.GLOBUS_TRANSFER
) {
// Log error and do not register user in case of non-auth token
logger.error(
"ui/authn",
Expand Down Expand Up @@ -600,9 +603,8 @@ app.get("/ui/authn", (a_req, a_resp) => {
scope: xfr_token.scope,
};
try {
const optional_data = token_handler.constructOptionalData(
token_context,
);
const optional_data =
token_handler.constructOptionalData(token_context);

// Refresh Globus access & refresh tokens to Core/DB
// NOTE: core services seem entirely in charge of refreshing tokens once they are set (ClientWorker.cpp).
Expand Down

0 comments on commit 9c7ad61

Please sign in to comment.