diff options
| author | mo khan <mo@mokhan.ca> | 2025-04-17 14:08:18 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-04-17 14:08:18 -0600 |
| commit | 62c24d360745ef8778a322c276a9ad577dfc7713 (patch) | |
| tree | a93eb5de35fb283bfa014bd3c23094017a2e72c4 /pkg/key/init.go | |
| parent | 81d3482b6937617ba3fd778a42d2fbbbf0b8e2b7 (diff) | |
refactor: move context keys to key package
Diffstat (limited to 'pkg/key/init.go')
| -rw-r--r-- | pkg/key/init.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/key/init.go b/pkg/key/init.go new file mode 100644 index 0000000..01d8a3d --- /dev/null +++ b/pkg/key/init.go @@ -0,0 +1,10 @@ +package key + +import ( + "github.com/xlgmokha/x/pkg/context" + "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/domain" + "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/oidc" +) + +var CurrentUserKey context.Key[*domain.User] = context.Key[*domain.User]("current_user") +var IDTokenKey context.Key[*oidc.IDToken] = context.Key[*oidc.IDToken]("id_token") |
