pkg/oidc: Replace interface{}
with any
Signed-off-by: Thomas Hipp <thomashipp@gmail.com>
This commit is contained in:
parent
4e6033896d
commit
868cf39632
8 changed files with 22 additions and 22 deletions
|
@ -85,7 +85,7 @@ func DecryptToken(tokenString string) (string, error) {
|
|||
return tokenString, nil // TODO: impl
|
||||
}
|
||||
|
||||
func ParseToken(tokenString string, claims interface{}) ([]byte, error) {
|
||||
func ParseToken(tokenString string, claims any) ([]byte, error) {
|
||||
parts := strings.Split(tokenString, ".")
|
||||
if len(parts) != 3 {
|
||||
return nil, fmt.Errorf("%w: token contains an invalid number of segments", ErrParse)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue