package auth

import (
	"time"
)

type Config struct {
	SignKey               string        `koanf:"sign_key"`
	AccessExpirationTime  time.Duration `koanf:"access_expiration_time"`
	RefreshExpirationTime time.Duration `koanf:"refresh_expiration_time"`
	AccessSubject         string        `koanf:"access_subject"`
	RefreshSubject        string        `koanf:"refresh_subject"`
	SeedToken             string        `koanf:"token"`
}

type Service struct {
	Config Config
}

func New(cfg Config) Service {
	return Service{
		Config: cfg,
	}
}
