Optimize code
This commit is contained in:
parent
224ecc42be
commit
ca2738072a
1
.gitignore
vendored
1
.gitignore
vendored
@ -17,3 +17,4 @@ vendor
|
||||
JetBrainsLicenseServer*
|
||||
utils/jbls/jbls
|
||||
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 {
|
||||
return fmt.Errorf("Couldn't read token: %v", err)
|
||||
} 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
|
||||
|
Loading…
Reference in New Issue
Block a user