package
0.0.0-20221208033113-692b37bef7b3
Repository: https://github.com/crossedbot/simpleauth.git
Documentation: pkg.go.dev
# Functions
Base64URLEncode returns the bytes for the given base64 URL encoded string.
Base64URLEncode returns a base64 URL encoded string for the given bytes.
Encode returns the bytes for a base64 (w/o padding) encoded string.
DecodeJSON sets the given data struct to the decoded bytes of the given string.
Encode returns a base64 (w/o padding) encoded string for the given bytes.
EncodeJSON returns the encoded string for a given data struct.
ToUserType returns the UserType for a value user type string.
ValidEmailAddress return true if the given email address is valid.
ValidOptions returns true if the options map is valid.
ValidPhonenumber returns true if the given phonenumber is valid.
ValidUsername returns true if the given username is valid.
# Constants
No description provided by the author
User types.
No description provided by the author
No description provided by the author
No description provided by the author
Validation constants.
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
Errors list.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Regular expression list Meant to provide a simple syntax check; e.g.
UserTypeStrings is a list of string representations of user types.
# Structs
AccessToken represents an access and refresh tokens.
Login represents a login request.
SignedPublicKey respresents a public key authentication request.
Totp represents a timed-based OTP.
User models a user in the authentication service.
Users represents a list of users.