You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UserAvatar called GithubService.validateToken() directly, coupling
it to a specific forge implementation. The createLazyAuth strategy
used Object.assign with untyped hook plumbing to support lazy token
resolution.
Replace the static validateToken with fetchUserInfo on the
SourceControlService interface. UserAvatar now calls the interface
method via useSourceControlService, making it forge-agnostic.
Replace createLazyAuth with a getter that caches the Octokit
instance and re-creates it only when the token changes.
Rename GitHubUser to ForgeUser with a simplified shape.
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Stanislav Jakuschevskij <sjakusch@redhat.com>
0 commit comments