Optimize code
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -17,3 +17,4 @@ 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
|
||||||
|
Reference in New Issue
Block a user