package jwt

import (
	"kra/internal/conf"

	"github.com/google/wire"
)

// NewJWTFromConf 从conf.JWT配置创建JWT实例（用于wire注入）
func NewJWTFromConf(c *conf.JWT) *JWT {
	return NewJWTFromConfig(c.SigningKey, c.Issuer, c.ExpiresTime, c.BufferTime)
}

// ProviderSet is jwt providers for wire.
var ProviderSet = wire.NewSet(NewJWTFromConf)
