Categorygithub.com/nexlabhq/auth
modulepackage
0.3.0
Repository: https://github.com/nexlabhq/auth.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
GetRequestIP gets a requests IP address by reading off the forwarded-for header (for proxies) and falls back to use the remote address.
GetRequestIpFromHeader gets a requests IP address by reading off the forwarded-for header (for proxies) and falls back to use the remote address.
NewAccountManager create new AccountManager instance.
NewAPIKeyAuth create new APIKeyAuth instance.
NewFirebaseAuth creates a FirebaseAuth instance.
NewJWTAuth creates a new JWTAuth instance.
NewTokenClaims create the access token option for custom claims.

# Constants

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
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
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
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
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
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
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
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
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
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
No description provided by the author
No description provided by the author
email scope is used to add the email info into the ID token.
offline_access is used to get a Refresh Token.
openid scope is used to get an ID Token.
profile scope is used to add the profile info into the ID token.
profile scope is used to add the role info into the ID token.
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
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
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
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
AccountManager account business method.
AccountManagerConfig config options for AccountManager.
No description provided by the author
APIKey represents an API key model.
ApiKeyAuth represents the api key authentication service.
AuthOTPConfig contains authentication configurations from sms otp.
No description provided by the author
CreateAccountInput represents the account insert input.
No description provided by the author
FirebaseAuth implements the AuthProvider interface for Firebase authentication.
GenerateOTPInput represents the otp generation input.
No description provided by the author
JWTAuth implements the AuthProvider interface for JWT authentication.
No description provided by the author
OTPOutput represents the otp response.
UpdateAccountInput represents the update account input.
VerifyOTPInput represents the otp verification input.

# Interfaces

AccessTokenOption the extensible interface for token encoding.
APIKeyGetter abstracts an API key model with getter.
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
AuthScope represents the OAuth Scopes specification https://oauth.net/2/scope/.
No description provided by the author