update dependencies
This commit is contained in:
parent
8902f35028
commit
43f4a42499
4
go.mod
4
go.mod
@ -1,5 +1,5 @@
|
|||||||
module git.purser.it/roypur/stoken
|
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
|
||||||
|
8
go.sum
8
go.sum
@ -1,4 +1,4 @@
|
|||||||
github.com/ugorji/go v1.2.6 h1:tGiWC9HENWE2tqYycIqFTNorMmFRVhNwCpDOpWqnk8E=
|
github.com/ugorji/go v1.2.7 h1:qYhyWUUd6WbiM+C6JZAUkIJt/1WrjzNHY9+KCIjVqTo=
|
||||||
github.com/ugorji/go v1.2.6/go.mod h1:anCg0y61KIhDlPZmnH+so+RQbysYVyDko0IMgJv0Nn0=
|
github.com/ugorji/go v1.2.7/go.mod h1:nF9osbDWLy6bDVv/Rtoh6QgnvNDpmCalQV5urGCCS6M=
|
||||||
github.com/ugorji/go/codec v1.2.6 h1:7kbGefxLoDBuYXOms4yD7223OpNMMPNPZxXk5TvFcyQ=
|
github.com/ugorji/go/codec v1.2.7 h1:YPXUKf7fYbp/y8xloBqZOw2qaVggbfwMlI8WM3wZUJ0=
|
||||||
github.com/ugorji/go/codec v1.2.6/go.mod h1:V6TCNZ4PHqoHGFZuSG1W8nrCzzdgA2DozYxWFFpvxTw=
|
github.com/ugorji/go/codec v1.2.7/go.mod h1:WGN1fab3R1fzQlVQTkfxVtIBhWDRqOviHU95kRgeqEY=
|
||||||
|
2
sign.go
2
sign.go
@ -52,7 +52,7 @@ func (tc TokenCoder) SeedHex() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Format(token string) (txt string, err error) {
|
func Format(token string) (txt string, err error) {
|
||||||
var payload any
|
var payload interface{}
|
||||||
var data []byte
|
var data []byte
|
||||||
data, err = b64.DecodeString(strings.TrimFunc(token, trim))
|
data, err = b64.DecodeString(strings.TrimFunc(token, trim))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user