Skip to content

fix: add unauthed retry to legacy api rpc client #777

Merged
gbirman merged 2 commits intomainfrom
gab/m-5456-auth-issue-in-dev
Jan 5, 2026
Merged

fix: add unauthed retry to legacy api rpc client #777
gbirman merged 2 commits intomainfrom
gab/m-5456-auth-issue-in-dev

Conversation

@gbirman
Copy link
Copy Markdown
Contributor

@gbirman gbirman commented Jan 5, 2026

Summary

@seanaye feel free to add middleware to the client gen code if you want as a follow up

Screenshots, GIFs, and Videos

@gbirman gbirman requested a review from a team as a code owner January 5, 2026 18:07
@linear
Copy link
Copy Markdown

linear bot commented Jan 5, 2026

M-5456 Auth issue in dev

throw error;
}

rpcClientInstance = null;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

instead of nullifying the client, can we just reload the headers, the client always call the function to get the recent headers. Allocating a new client each time seems very heavy. Otherwise looks good

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

updated, ENABLE_BEARER_TOKEN_AUTH is false atm so the new code path isn't actually used but if we flag it on it'll update the headers

@gbirman gbirman requested a review from seanaye January 5, 2026 18:29
Copy link
Copy Markdown
Contributor

@seanaye seanaye left a comment

Choose a reason for hiding this comment

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

awesome, ty for fix

@gbirman gbirman merged commit 06c8a18 into main Jan 5, 2026
19 checks passed
@gbirman gbirman deleted the gab/m-5456-auth-issue-in-dev branch January 5, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants