extended method to get auth data
This commit is contained in:
parent
4c15e804fc
commit
360d265672
2 changed files with 26 additions and 10 deletions
|
|
@ -5,7 +5,7 @@ import "github.com/gin-gonic/gin"
|
|||
type Utils interface {
|
||||
IsEmail(email string) bool
|
||||
GetUserUuidFromContext(c *gin.Context) (string, error)
|
||||
GetUserAndTokenUuidFromContext(c *gin.Context) (string, string, error)
|
||||
GetAllTokensFromContext(c *gin.Context) (string, string, string, error)
|
||||
HashPassword(password string) (string, error)
|
||||
ComparePasswords(hashedPassword string, plainPassword string) error
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue