Skip to content

chore: remove dead UserAuth fields and StoreMarshalledUser - #1923

Open
detail-app[bot] wants to merge 1 commit into
mainfrom
detail/dead-code/chore-remove-dead-userauth-fields-and-storemarshal-321417
Open

chore: remove dead UserAuth fields and StoreMarshalledUser#1923
detail-app[bot] wants to merge 1 commit into
mainfrom
detail/dead-code/chore-remove-dead-userauth-fields-and-storemarshal-321417

Conversation

@detail-app

@detail-app detail-app Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Removed the unused StoreMarshalledUser function and the Org,
InternalOpaque, Clerk, and IsGithubAction fields from the UserAuth
struct, along with the now-unused context and clerk imports.

These symbols were left behind after commit f152d3d ("auth: remove
dead code.", Oct 2023) removed their last readers and callers (the
StoreUser, GenerateToken/GenerateTokenFromUserAuth, clerk login path,
and GitHub Actions login path). The modern login flow uses tenant
tokens via tokens.go (token.json) instead of auth.json. None of these
fields are read or written anywhere in production code; only Username
remains in use (read by the ns doctor diagnostic at doctor.go:170).

History

  • Last materially changed January 2023 (@niklas Gehlen)

Dead Code PRs can be configured here.

@detail-app
detail-app Bot requested a review from n-g August 20, 2026 02:50
@detail-app detail-app Bot assigned n-g Aug 20, 2026
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