guards

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWTConfig

type JWTConfig struct {
	Key string `yaml:"key" env:"AUTH_JWT_KEY"`
	TTL int64  `yaml:"ttl" env:"AUTH_JWT_TTL"`
}

JWTConfig jwt auth guard config

type TokenProvider

type TokenProvider struct {
	Request contracts.RequestContract
}

TokenProvider of jwt auth guard

func (TokenProvider) GetAccessToken

func (tp TokenProvider) GetAccessToken() ([]byte, error)

GetAccessToken: get request token (bearer)

Jump to

Keyboard shortcuts

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