Auth Login writed. Not checked.
This commit is contained in:
@@ -1,16 +1,14 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/golang-jwt/jwt/v4"
|
||||
)
|
||||
|
||||
var jwtKey = []byte(os.Getenv("SECRET_KEY"))
|
||||
|
||||
type Crenetials struct {
|
||||
Name string `json:"name"`
|
||||
Email string `json:"email"`
|
||||
Password string `json:"password"`
|
||||
Phone string `json:"phone"`
|
||||
}
|
||||
|
||||
type Claims struct {
|
||||
|
||||
Reference in New Issue
Block a user