package
1.0.0
Repository: https://github.com/hyperjumptech/hansip.git
Documentation: pkg.go.dev

# Functions

Authentication serve normal authentication.
Authentication2FA serve authentication with 2fa secret key.
InitializeAuthRouter initializes the module's repository and routing.
Refresh serves token refresh.
TwoFA validate 2FA token and authenticate the user.
TwoFATest is an endpoint handler used for testing 2FA.

# Variables

TokenFactory instance used for generating and validating token.

# Structs

RefreshResponse a model for responding successful refresh.
Request a model for authentication request.
RequestWith2FA a model for authentication using 2fa secret key.
Response a model for responding successful authentication.
TwoFARequest model for sending 2FA authentication.
TwoFATestRequest model for sending 2FA authentication.