Documentation ¶
Index ¶
- func AccountAuth(idEmailNick string, secret string, mongoClient *mongo.Client) bool
- func AccountPayload(idEmailNick string, mongoClient *mongo.Client) map[string]interface{}
- func AccountToPayload(account accounts.Account) map[string]interface{}
- func AuthWithUserPassFactory(mongoClient *mongo.Client) func(string, string) bool
- func AuthenticatePayloadFactory(mongoClient *mongo.Client, jwtMiddleware *jwt.JWTMiddleware) func(string) map[string]interface{}
- func CreateAnonToken(jwtMiddleware *jwt.JWTMiddleware) string
- func CreateUserToken(payload *authmodels.LoginRequestPayload, jwtMiddleware *jwt.JWTMiddleware) (tokenString string, rerr *utils.RError)
- func DeviceAuth(deviceID string, secret string, mongoClient *mongo.Client) bool
- func DevicePayload(deviceID string, mongoClient *mongo.Client) map[string]interface{}
- func GetAccount(prnEmailNick string, mongoClient *mongo.Client) (accounts.Account, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountAuth ¶
func AccountPayload ¶
func AccountToPayload ¶
AccountToPayload get account payload for JWT tokens
func AuthWithUserPassFactory ¶
func CreateAnonToken ¶
func CreateAnonToken(jwtMiddleware *jwt.JWTMiddleware) string
func CreateUserToken ¶
func CreateUserToken(payload *authmodels.LoginRequestPayload, jwtMiddleware *jwt.JWTMiddleware) (tokenString string, rerr *utils.RError)
func DevicePayload ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.