Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Get auth session silently before creating#298782

Draft
osortega wants to merge 1 commit intomainfrom
osortega/integral-mastodon
Draft

Get auth session silently before creating#298782
osortega wants to merge 1 commit intomainfrom
osortega/integral-mastodon

Conversation

@osortega
Copy link
Contributor

@osortega osortega commented Mar 2, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 2, 2026 19:36
@osortega osortega self-assigned this Mar 2, 2026
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

Updates the GitHub extension’s authentication flow to attempt retrieving an existing GitHub auth session without triggering any UI, and only fall back to interactive creation if none is available.

Changes:

  • Call authentication.getSession(..., { silent: true }) first to reuse an existing session without prompts.
  • Fall back to authentication.getSession(..., { createIfNone: true }) only when the silent call returns no session.

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.

2 participants