utils

package
v0.0.0-...-2362eb5 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTokens

func CreateTokens(user *models.User) (string, string, error)

func GeneratePasswordHash

func GeneratePasswordHash(password string) string

func GetGitHubOauthToken

func GetGitHubOauthToken(code string) (token string, err error)

func GetGitHubUser

func GetGitHubUser(access_token string) (*models.UserRequestRegisterGithub, error)

func ValidateAccessToken

func ValidateAccessToken(accessToken string) (*tokenClaims, error)

func ValidateRefreshToken

func ValidateRefreshToken(refreshToken string) error

Types

type GitHubOauthToken

type GitHubOauthToken struct {
	Access_token string
}

Jump to

Keyboard shortcuts

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