Merge remote-tracking branch 'cli/master' into pr-count

This commit is contained in:
UmairShahzad 2020-02-15 20:37:53 +05:00
commit c546fd863d

View file

@ -2,6 +2,7 @@ package auth
import (
"crypto/rand"
"encoding/hex"
"errors"
"fmt"
"io"
@ -20,7 +21,7 @@ func randomString(length int) (string, error) {
if err != nil {
return "", err
}
return fmt.Sprintf("%x", b), nil
return hex.EncodeToString(b), nil
}
// OAuthFlow represents the setup for authenticating with GitHub