Skip to content

Commit e3d1d7f

Browse files
committed
refactor: improve readability of authorization response handling
- Refactor the call to ProcessAuthorizationResponse to use multi-line argument formatting for improved readability Signed-off-by: appleboy <appleboy.tw@gmail.com>
1 parent 71e64e3 commit e3d1d7f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

03-oauth-mcp/oauth-client/client.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,12 @@ func main() {
121121
}
122122

123123
slog.Info("Exchanging authorization code for token...")
124-
err = oauthHandler.ProcessAuthorizationResponse(context.Background(), code, state, codeVerifier)
124+
err = oauthHandler.ProcessAuthorizationResponse(
125+
context.Background(),
126+
code,
127+
state,
128+
codeVerifier,
129+
)
125130
if err != nil {
126131
fatalError("Failed to process authorization response", err)
127132
}

0 commit comments

Comments
 (0)