token

package
v0.0.0-...-a7a091c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	GenerateToken(u *entities.User) (string, int64, error)
	GenerateRefreshToken(u *entities.User) (string, int64, error)
}

func NewService

func NewService() Service

type TokenService

type TokenService struct {
	// contains filtered or unexported fields
}

func (*TokenService) GenerateRefreshToken

func (s *TokenService) GenerateRefreshToken(u *entities.User) (string, int64, error)

func (*TokenService) GenerateToken

func (s *TokenService) GenerateToken(u *entities.User) (string, int64, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL