Skip to content

feat: pass auth tokens by reference, not value#1362

Open
jonathanlab wants to merge 1 commit into03-30-refactor_move_auth_to_mainfrom
refactor_pass_tokens_by_reference_not_by_value
Open

feat: pass auth tokens by reference, not value#1362
jonathanlab wants to merge 1 commit into03-30-refactor_move_auth_to_mainfrom
refactor_pass_tokens_by_reference_not_by_value

Conversation

@jonathanlab
Copy link
Copy Markdown
Contributor

@jonathanlab jonathanlab commented Mar 30, 2026

Problem

We've split up the auth store in the previous PR into a service, but now we're not actually using it properly. A lot of services use their own (stale) local auth token value. We instead want to use the auth services token.

Changes

  • update main services to et auth token through AuthService instead of storing it away somewhere locally
  • agent package now accepts a get token and refresh token function instead of a token value
  • clean up a bunch of auth code

Copy link
Copy Markdown
Contributor Author

jonathanlab commented Mar 30, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@jonathanlab jonathanlab force-pushed the 03-30-refactor_move_auth_to_main branch from 95069b4 to c0bb295 Compare March 31, 2026 11:50
@jonathanlab jonathanlab force-pushed the refactor_pass_tokens_by_reference_not_by_value branch from 7a165a4 to 98a1093 Compare March 31, 2026 11:50
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.

1 participant