Skip to content

Conversation

@dbezic
Copy link
Contributor

@dbezic dbezic commented Dec 2, 2025

Using the loadAuthConfigFromEnv to get the auth from the environment variables.

Copilot AI review requested due to automatic review settings December 2, 2025 15:18
@dbezic dbezic requested a review from a team as a code owner December 2, 2025 15:18
Copilot finished reviewing on behalf of dbezic December 2, 2025 15:21
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the Vercel SDK sample agent to properly load authentication configuration from environment variables, aligning it with the standard pattern used in other Agent 365 Node.js samples.

Key Changes:

  • Replaced empty AuthConfiguration object with loadAuthConfigFromEnv() to load auth settings from environment variables
  • Added CommonJS module type declaration to package.json for proper module resolution

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
nodejs/vercel-sdk/sample-agent/src/index.ts Updated to import and use loadAuthConfigFromEnv() function for loading authentication configuration from environment variables instead of using an empty configuration object
nodejs/vercel-sdk/sample-agent/package.json Added "type": "commonjs" to explicitly specify the module system

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@dbezic dbezic merged commit 748afcb into main Dec 4, 2025
8 checks passed
@pontemonti pontemonti deleted the dominikbezic/fix-vercel-auth branch December 5, 2025 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants