batazor/go-auth

View on GitHub
models/session/session.go

Summary

Maintainability
A
0 mins
Test Coverage

exported function CheckRefreshToken should have comment or be unexported
Open

func CheckRefreshToken(token string) (bool, error) {
Severity: Minor
Found in models/session/session.go by golint

exported function GetValueByKey should have comment or be unexported
Open

func GetValueByKey(token string) (string, error) {
Severity: Minor
Found in models/session/session.go by golint

exported function VerifyToken should have comment or be unexported
Open

func VerifyToken(tokenString string) (*jwt.Token, error) {
Severity: Minor
Found in models/session/session.go by golint

don't use MixedCaps in package name; sessionModel should be sessionmodel
Open

package sessionModel
Severity: Minor
Found in models/session/session.go by golint

don't use ALL_CAPS in Go names; use CamelCase
Open

    PUBLIC_KEY  = "cert/public_key.pub"
Severity: Minor
Found in models/session/session.go by golint

exported function NewRecoveryLink should have comment or be unexported
Open

func NewRecoveryLink(value string) (string, error) {
Severity: Minor
Found in models/session/session.go by golint

exported function NewAccessToken should have comment or be unexported
Open

func NewAccessToken(timeDuration int64) (string, error) {
Severity: Minor
Found in models/session/session.go by golint

don't use ALL_CAPS in Go names; use CamelCase
Open

    PRIVATE_KEY = "cert/private_key.pem"
Severity: Minor
Found in models/session/session.go by golint

exported function Delete should have comment or be unexported
Open

func Delete(token string) error {
Severity: Minor
Found in models/session/session.go by golint

exported function NewRefreshToken should have comment or be unexported
Open

func NewRefreshToken(timeDuration time.Duration) (string, error) {
Severity: Minor
Found in models/session/session.go by golint

exported const PRIVATE_KEY should have comment (or a comment on this block) or be unexported
Open

    PRIVATE_KEY = "cert/private_key.pem"
Severity: Minor
Found in models/session/session.go by golint

There are no issues that match your filters.

Category
Status