models/session/session.go
exported function CheckRefreshToken should have comment or be unexported Open
Open
func CheckRefreshToken(token string) (bool, error) {
- Exclude checks
exported function GetValueByKey should have comment or be unexported Open
Open
func GetValueByKey(token string) (string, error) {
- Exclude checks
exported function VerifyToken should have comment or be unexported Open
Open
func VerifyToken(tokenString string) (*jwt.Token, error) {
- Exclude checks
don't use MixedCaps in package name; sessionModel should be sessionmodel Open
Open
package sessionModel
- Exclude checks
don't use ALL_CAPS in Go names; use CamelCase Open
Open
PUBLIC_KEY = "cert/public_key.pub"
- Exclude checks
exported function NewRecoveryLink should have comment or be unexported Open
Open
func NewRecoveryLink(value string) (string, error) {
- Exclude checks
exported function NewAccessToken should have comment or be unexported Open
Open
func NewAccessToken(timeDuration int64) (string, error) {
- Exclude checks
don't use ALL_CAPS in Go names; use CamelCase Open
Open
PRIVATE_KEY = "cert/private_key.pem"
- Exclude checks
exported function Delete should have comment or be unexported Open
Open
func Delete(token string) error {
- Exclude checks
exported function NewRefreshToken should have comment or be unexported Open
Open
func NewRefreshToken(timeDuration time.Duration) (string, error) {
- Exclude checks
exported const PRIVATE_KEY should have comment (or a comment on this block) or be unexported Open
Open
PRIVATE_KEY = "cert/private_key.pem"
- Exclude checks