random

package
v0.0.0-...-0026d00 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTokenGenerator

func NewTokenGenerator(cfg *Configuration) token.Generator

Types

type Configuration

type Configuration struct {
	AccessTokenSize  int `mapstructure:"access_token_size"`
	RefreshTokenSize int `mapstructure:"refresh_token_size"`
}

Configuration struct.

type TokenGenerator

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

func (*TokenGenerator) GenerateAccessToken

func (g *TokenGenerator) GenerateAccessToken(generateRefresh bool) (accessToken string, refreshToken string, err error)

Jump to

Keyboard shortcuts

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