diff --git a/go.mod b/go.mod index 6391a10..4df77b8 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ module git.purser.it/roypur/stoken -go 1.17 +go 1.18 -require github.com/ugorji/go/codec v1.2.6 +require github.com/ugorji/go/codec v1.2.7 // indirect diff --git a/go.sum b/go.sum index ff77558..47dea88 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,4 @@ -github.com/ugorji/go v1.2.6 h1:tGiWC9HENWE2tqYycIqFTNorMmFRVhNwCpDOpWqnk8E= -github.com/ugorji/go v1.2.6/go.mod h1:anCg0y61KIhDlPZmnH+so+RQbysYVyDko0IMgJv0Nn0= -github.com/ugorji/go/codec v1.2.6 h1:7kbGefxLoDBuYXOms4yD7223OpNMMPNPZxXk5TvFcyQ= -github.com/ugorji/go/codec v1.2.6/go.mod h1:V6TCNZ4PHqoHGFZuSG1W8nrCzzdgA2DozYxWFFpvxTw= +github.com/ugorji/go v1.2.7 h1:qYhyWUUd6WbiM+C6JZAUkIJt/1WrjzNHY9+KCIjVqTo= +github.com/ugorji/go v1.2.7/go.mod h1:nF9osbDWLy6bDVv/Rtoh6QgnvNDpmCalQV5urGCCS6M= +github.com/ugorji/go/codec v1.2.7 h1:YPXUKf7fYbp/y8xloBqZOw2qaVggbfwMlI8WM3wZUJ0= +github.com/ugorji/go/codec v1.2.7/go.mod h1:WGN1fab3R1fzQlVQTkfxVtIBhWDRqOviHU95kRgeqEY= diff --git a/sign.go b/sign.go index a19305c..cc6bf0a 100644 --- a/sign.go +++ b/sign.go @@ -52,7 +52,7 @@ func (tc TokenCoder) SeedHex() string { } func Format(token string) (txt string, err error) { - var payload any + var payload interface{} var data []byte data, err = b64.DecodeString(strings.TrimFunc(token, trim)) if err != nil {