summaryrefslogtreecommitdiff
path: root/app/cfg
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-04-25 15:36:04 -0600
committermo khan <mo@mokhan.ca>2025-04-25 15:36:04 -0600
commit786c4d2cd0860032e2624cadbbf54891d4269ae2 (patch)
tree3ad2aa0e298d97b431982183224c1e8c6a7ed817 /app/cfg
parent8836d0744aed44435e35af78d7533ff09db0c62e (diff)
refactor: move key pacakge to cfg
Diffstat (limited to 'app/cfg')
-rw-r--r--app/cfg/cfg.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/cfg/cfg.go b/app/cfg/cfg.go
new file mode 100644
index 0000000..2dbadc4
--- /dev/null
+++ b/app/cfg/cfg.go
@@ -0,0 +1,10 @@
+package cfg
+
+import (
+ "github.com/xlgmokha/x/pkg/context"
+ "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/app/domain"
+ "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/oidc"
+)
+
+var CurrentUser context.Key[*domain.User] = context.Key[*domain.User]("current_user")
+var IDToken context.Key[*oidc.IDToken] = context.Key[*oidc.IDToken]("id_token")