tokenutil

package
v0.0.0-...-93f85b4 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 8 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)

func ValidateGoogleJwt

func ValidateGoogleJwt(tokenString string) (domain.GoogleClaims, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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