From c6f6a8800df39781a143bb917c86bc2c7949e22d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20M=C3=B6hlmann?= Date: Mon, 25 Sep 2023 20:07:08 +0300 Subject: [PATCH] cleanup unused GrantType method --- pkg/oidc/token_request.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pkg/oidc/token_request.go b/pkg/oidc/token_request.go index 06b9c29..330c0c2 100644 --- a/pkg/oidc/token_request.go +++ b/pkg/oidc/token_request.go @@ -50,16 +50,6 @@ const ( JWTTokenType TokenType = "urn:ietf:params:oauth:token-type:jwt" ) -func (t GrantType) IsSupported() bool { - for _, gt := range AllGrantTypes { - if t == gt { - return true - } - } - - return false -} - var AllTokenTypes = []TokenType{ AccessTokenType, RefreshTokenType, IDTokenType, JWTTokenType, }