package
0.0.0-20240506023614-4edbe0b3572a
Repository: https://github.com/rohitkmishra/iamversedemo.git
Documentation: pkg.go.dev

# Functions

DeleteOldNotifications deletes notifications older than the specified duration.
GenerateAccessClaims returns a claim and a acess_token string.
GenerateRefreshClaims returns refresh_token.
GenerateTokens returns the access and refresh tokens.
GetAuthCookies sends two cookies of type access_token and refresh_token.
IsEmpty checks if a string is empty.
SecureAuth returns a middleware which secures all the private routes.
No description provided by the author
ValidateRegister func validates the body of user for registration.
No description provided by the author

# Structs

ValidatorResult represents the result of input validation.