auth

package
v0.0.0-...-9e197ba Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateJWT

func CreateJWT(userUUID uuid.UUID) (*models.TokenDetails, error)

새로운 Access Token과 Refresh Token을 생성합니다.

func DeleteAuth

func DeleteAuth(tokenUUID string) (int64, error)

func ExtractToken

func ExtractToken(r *fiber.Ctx) (string, error)

func ExtractTokenMetaData

func ExtractTokenMetaData(r *fiber.Ctx) (*models.AccessDetails, error)

func FetchAuth

func FetchAuth(authD *models.AccessDetails) (string, error)

func InsertRedisAuth

func InsertRedisAuth(userUUID uuid.UUID, td *models.TokenDetails) error

func RedisInit

func RedisInit() *redis.Client

Redis를 접속할 수 있는 기능입니다.

func TokenVailed

func TokenVailed(r *fiber.Ctx) error

func VerifyToken

func VerifyToken(r *fiber.Ctx) (*jwt.Token, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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