summaryrefslogtreecommitdiff
path: root/pkg/oidc
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-04-17 14:08:18 -0600
committermo khan <mo@mokhan.ca>2025-04-17 14:08:18 -0600
commit62c24d360745ef8778a322c276a9ad577dfc7713 (patch)
treea93eb5de35fb283bfa014bd3c23094017a2e72c4 /pkg/oidc
parent81d3482b6937617ba3fd778a42d2fbbbf0b8e2b7 (diff)
refactor: move context keys to key package
Diffstat (limited to 'pkg/oidc')
-rw-r--r--pkg/oidc/oidc.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/pkg/oidc/oidc.go b/pkg/oidc/oidc.go
index 200db69..b82570b 100644
--- a/pkg/oidc/oidc.go
+++ b/pkg/oidc/oidc.go
@@ -4,7 +4,6 @@ import (
"context"
"github.com/coreos/go-oidc/v3/oidc"
- xcontext "github.com/xlgmokha/x/pkg/context"
"golang.org/x/oauth2"
)
@@ -14,8 +13,6 @@ type OpenID struct {
OIDCConfig *oidc.Config
}
-var IDTokenKey xcontext.Key[*IDToken] = xcontext.Key[*IDToken]("id_token")
-
func New(ctx context.Context, issuer string, clientID, clientSecret, callbackURL string) (*OpenID, error) {
provider, err := oidc.NewProvider(ctx, issuer)
if err != nil {