Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Access ¶
Access grant access to db and jwt
func (Access) FindUserByEmail ¶
FindUserByEmail - use email to retrieve user's details from DB and return a user struct
func (Access) RegisterUser ¶
RegisterUser - add user to DB
func (Access) UpdateToken ¶
UpdateToken - update the token document related to an user giving it a new token
type Claim ¶
type Claim struct { User string `json:"user"` Email string `json:"email"` jwt.StandardClaims }
Claim wraps the info we want to pass in the JWT
type Credential ¶
Credential wraps data related to user access to api
Click to show internal directories.
Click to hide internal directories.