Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewJWTServices ¶
func NewJWTServices(config *AuthTokenConfig) internal.AuthTokenServices
Types ¶
type AuthTokenConfig ¶
type AuthTokenConfig struct {
// contains filtered or unexported fields
}
func (*AuthTokenConfig) EncryptionSecretKey ¶
func (c *AuthTokenConfig) EncryptionSecretKey() string
func (*AuthTokenConfig) ExpirationDuration ¶
func (c *AuthTokenConfig) ExpirationDuration() time.Duration
func (*AuthTokenConfig) SigningSecretKey ¶
func (c *AuthTokenConfig) SigningSecretKey() string
type AuthTokenConfigBuilder ¶
type AuthTokenConfigBuilder interface { SetJWTSigningSecretKey(string) AuthTokenConfigBuilder SetJWTEncryptionSecretKey(string) AuthTokenConfigBuilder SetJWTExpirationDuration(time.Duration) AuthTokenConfigBuilder Build() *AuthTokenConfig }
func NewAuthTokenConfigBuilder ¶
func NewAuthTokenConfigBuilder() AuthTokenConfigBuilder
Click to show internal directories.
Click to hide internal directories.