Categorygithub.com/source-con/utils
modulepackage
0.2.11
Repository: https://github.com/source-con/utils.git
Documentation: pkg.go.dev

# README

WIP

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

ComparePasswordHash compares the password hash with the given password.
CopyStruct copies the src struct to dest struct.
GenerateAccessToken generates access token with signing method HS512 and given claims.
GenerateOTP generates a random OTP of given length.
GeneratePasswordHash generates the bcrypt hash.
GenerateRefreshToken generates refresh token from access token string it concatenates access token with current time and hashes it using sha512.
GetPGDBFromCtx returns the pg db from context it is used to get the transaction object from context if present.
ParseToken parses the given token string using the given secret and returns the token object.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author