Optimize code
This commit is contained in:
parent
224ecc42be
commit
ca2738072a
3
.gitignore
vendored
3
.gitignore
vendored
@ -16,4 +16,5 @@ vendor
|
|||||||
|
|
||||||
JetBrainsLicenseServer*
|
JetBrainsLicenseServer*
|
||||||
utils/jbls/jbls
|
utils/jbls/jbls
|
||||||
utils/jwt/jwt
|
utils/jwt/jwt
|
||||||
|
.idea
|
3
utils/jwt/demo.json
Normal file
3
utils/jwt/demo.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"foo": "bar"
|
||||||
|
}
|
@ -166,7 +166,8 @@ func signToken() error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("Couldn't read token: %v", err)
|
return fmt.Errorf("Couldn't read token: %v", err)
|
||||||
} else if *flagDebug {
|
} else if *flagDebug {
|
||||||
fmt.Fprintf(os.Stderr, "Token: %v bytes", len(tokData))
|
fmt.Fprintf(os.Stderr, "Token len: %v bytes\n", len(tokData))
|
||||||
|
fmt.Fprintf(os.Stderr, "Token data: %v \n", string(tokData))
|
||||||
}
|
}
|
||||||
|
|
||||||
// parse the JSON of the claims
|
// parse the JSON of the claims
|
||||||
|
Loading…
Reference in New Issue
Block a user