aceberg/ForAuth

View on GitHub
internal/auth/models-vars.go

Summary

Maintainability
A
0 mins
Test Coverage
package auth

import (
    "time"
)

// Conf - auth config
type Conf struct {
    Auth     bool
    User     string
    Password string
    ExpStr   string
    Expire   time.Duration
}

var allSessions = map[string]time.Time{}

var cookieName = "forauth_session_token"