tokenutil

package
v0.0.0-...-c4d8e50 Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAccessToken

func CreateAccessToken(user *domain.User, secret string, expiry int) (accessToken string, err error)

func CreateRefreshToken

func CreateRefreshToken(user *domain.User, secret string, expiry int) (refreshToken string, err error)

func ExtractIDFromToken

func ExtractIDFromToken(requestToken string, secret string) (string, error)

func IsAuthorized

func IsAuthorized(requestToken string, secret string) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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